diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-12-03 01:31:28 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-12-03 01:31:28 +0000 |
commit | 2eca546c5836938dff3a517fbe43f266073215ab (patch) | |
tree | 9cb19fcdcdc47e1515f2625f817018b232fcd4fb /lib | |
parent | 7087d75db1df40b450ebe59acad8d15550348e02 (diff) |
Rename has_feature(rtti) to has_feature(cxx_rtti) for clarity.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Lex/PPMacroExpansion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index 8ec8b9bab8..6181e17e60 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/lib/Lex/PPMacroExpansion.cpp @@ -483,12 +483,12 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { switch (II->getLength()) { default: return false; - case 4: - if (II->isStr("rtti")) return LangOpts.RTTI; - return false; case 6: if (II->isStr("blocks")) return LangOpts.Blocks; return false; + case 8: + if (II->isStr("cxx_rtti")) return LangOpts.RTTI; + return false; case 19: if (II->isStr("objc_nonfragile_abi")) return LangOpts.ObjCNonFragileABI; return false; |