Add the @NSKeyedArchiveLegacy attribute.

This attribute allows one to provide the "legacy" name of a class for
the purposes of archival (via NSCoding). At the moment, it is only
useful for suppressing the warnings/errors about classes with unstable
archiving names.
This commit is contained in:
Doug Gregor
2017-05-02 15:16:56 -07:00
parent 28560ec005
commit aaf7933a6d
12 changed files with 74 additions and 6 deletions

View File

@@ -1948,6 +1948,7 @@ void Serializer::writeDeclAttribute(const DeclAttribute *DA) {
case DAK_SynthesizedProtocol:
case DAK_Count:
case DAK_Implements:
case DAK_NSKeyedArchiveLegacy:
llvm_unreachable("cannot serialize attribute");
return;