diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-03-26 12:16:15 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-03-26 12:16:15 +0000 |
commit | dceb53180ae145915673913a9398ba4a00b05584 (patch) | |
tree | 80e2b267f91670fae13185d0d6cb668768762ca5 /lib/Lex/PPMacroExpansion.cpp | |
parent | 4421d2b341d041df44013769f23c306308bbab83 (diff) |
Add a __has_feature check for the 'availability' attribute
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPMacroExpansion.cpp')
-rw-r--r-- | lib/Lex/PPMacroExpansion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index e1fc0ba88f..71f332769e 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/lib/Lex/PPMacroExpansion.cpp @@ -530,6 +530,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { return llvm::StringSwitch<bool>(II->getName()) .Case("attribute_analyzer_noreturn", true) + .Case("attribute_availability", true) .Case("attribute_cf_returns_not_retained", true) .Case("attribute_cf_returns_retained", true) .Case("attribute_deprecated_with_message", true) |