[ClangImporter] Handle __attribute__((availability(swift, unavailable))).

This is the new and improved version of
__attribute__((annotate("swift1_unavailable"))), with the "improved" being
specifically that the 'availability' attribute supports a message.

This requires a corresponding Clang commit.

Swift side of rdar://problem/18768673.

Swift SVN r27053
This commit is contained in:
Jordan Rose
2015-04-07 02:40:22 +00:00
parent 04946e505b
commit 182ef27f95
13 changed files with 161 additions and 52 deletions

View File

@@ -1579,7 +1579,7 @@ void Serializer::writeDeclAttribute(const DeclAttribute *DA) {
AvailabilityDeclAttrLayout::emitRecord(
Out, ScratchRecord, abbrCode,
theAttr->isImplicit(),
theAttr->IsUnvailable,
theAttr->isUnconditionallyUnavailable(),
LIST_VER_TUPLE_PIECES(Introduced),
LIST_VER_TUPLE_PIECES(Deprecated),
LIST_VER_TUPLE_PIECES(Obsoleted),