Print strict in Availability attribute when it is on.

llvm-svn: 263172
This commit is contained in:
Manman Ren 2016-03-10 23:54:12 +00:00
parent 515758e076
commit 42e09eb022
2 changed files with 4 additions and 0 deletions

View File

@ -32,3 +32,6 @@ int * __uptr __ptr32 p32_3;
// CHECK: int * __sptr * __ptr32 ppsp32;
int * __sptr * __ptr32 ppsp32;
// CHECK: __attribute__((availability(macosx, strict, introduced=10.6)));
void f6(int) __attribute__((availability(macosx,strict,introduced=10.6)));

View File

@ -1103,6 +1103,7 @@ createArgument(const Record &Arg, StringRef Attr,
static void writeAvailabilityValue(raw_ostream &OS) {
OS << "\" << getPlatform()->getName();\n"
<< " if (getStrict()) OS << \", strict\";\n"
<< " if (!getIntroduced().empty()) OS << \", introduced=\" << getIntroduced();\n"
<< " if (!getDeprecated().empty()) OS << \", deprecated=\" << getDeprecated();\n"
<< " if (!getObsoleted().empty()) OS << \", obsoleted=\" << getObsoleted();\n"