summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2009-08-31 16:41:57 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2009-08-31 16:41:57 +0000
commit5778fce14148ae0ccf5a6bb5b940e66b33653e5c (patch)
tree4bc5fd2430e126bd2f4e1460174e22af2eb44176 /clang/lib/Lex
parentd18e668fbcf40951c19a908f91b74cd41ea9f21c (diff)
downloadbcm5719-llvm-5778fce14148ae0ccf5a6bb5b940e66b33653e5c.tar.gz
bcm5719-llvm-5778fce14148ae0ccf5a6bb5b940e66b33653e5c.zip
Updated GNU runtime non-fragile ABI.
Added -fconstant-string-class= option. Added __has_feature() test for non-fragile ABI. llvm-svn: 80591
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index 286705181cc..b57f68a5a5d 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -484,6 +484,9 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
case 6:
if (II->isStr("blocks")) return LangOpts.Blocks;
return false;
+ case 19:
+ if (II->isStr("objc_nonfragile_abi")) return LangOpts.ObjCNonFragileABI;
+ return false;
case 22:
if (II->isStr("attribute_overloadable")) return true;
return false;
OpenPOWER on IntegriCloud