[cfe-commits] r90376 - in /cfe/trunk: lib/Lex/PPMacroExpansion.cpp test/Lexer/has_feature_rtti.cpp
Ted Kremenek
kremenek at apple.com
Wed Dec 2 17:31:28 PST 2009
Author: kremenek
Date: Wed Dec 2 19:31:28 2009
New Revision: 90376
URL: http://llvm.org/viewvc/llvm-project?rev=90376&view=rev
Log:
Rename has_feature(rtti) to has_feature(cxx_rtti) for clarity.
Modified:
cfe/trunk/lib/Lex/PPMacroExpansion.cpp
cfe/trunk/test/Lexer/has_feature_rtti.cpp
Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=90376&r1=90375&r2=90376&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Wed Dec 2 19:31:28 2009
@@ -483,12 +483,12 @@
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;
Modified: cfe/trunk/test/Lexer/has_feature_rtti.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/has_feature_rtti.cpp?rev=90376&r1=90375&r2=90376&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/has_feature_rtti.cpp (original)
+++ cfe/trunk/test/Lexer/has_feature_rtti.cpp Wed Dec 2 19:31:28 2009
@@ -1,7 +1,7 @@
// RUN: clang -E -frtti %s -o - | FileCheck --check-prefix=CHECK-RTTI %s
// RUN: clang -E -fno-rtti %s -o - | FileCheck --check-prefix=CHECK-NO-RTTI %s
-#if __has_feature(rtti)
+#if __has_feature(cxx_rtti)
int foo();
#else
int bar();
More information about the cfe-commits
mailing list