[cfe-commits] r90368 - /cfe/trunk/lib/Lex/PPMacroExpansion.cpp
Ted Kremenek
kremenek at apple.com
Wed Dec 2 17:02:35 PST 2009
Author: kremenek
Date: Wed Dec 2 19:02:35 2009
New Revision: 90368
URL: http://llvm.org/viewvc/llvm-project?rev=90368&view=rev
Log:
Add "has_feature" support for C++ RTTI.
Modified:
cfe/trunk/lib/Lex/PPMacroExpansion.cpp
Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=90368&r1=90367&r2=90368&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Wed Dec 2 19:02:35 2009
@@ -483,6 +483,9 @@
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;
More information about the cfe-commits
mailing list