[cfe-commits] r70926 - /cfe/branches/Apple/objective-rewrite/tools/clang/lib/Lex/Preprocessor.cpp
Steve Naroff
snaroff at apple.com
Mon May 4 15:30:38 PDT 2009
Author: snaroff
Date: Mon May 4 17:30:38 2009
New Revision: 70926
URL: http://llvm.org/viewvc/llvm-project?rev=70926&view=rev
Log:
Fix <rdar://problem/6848533> need support for __PRETTY_FUNCTION__.
Modified:
cfe/branches/Apple/objective-rewrite/tools/clang/lib/Lex/Preprocessor.cpp
Modified: cfe/branches/Apple/objective-rewrite/tools/clang/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/objective-rewrite/tools/clang/lib/Lex/Preprocessor.cpp?rev=70926&r1=70925&r2=70926&view=diff
==============================================================================
--- cfe/branches/Apple/objective-rewrite/tools/clang/lib/Lex/Preprocessor.cpp (original)
+++ cfe/branches/Apple/objective-rewrite/tools/clang/lib/Lex/Preprocessor.cpp Mon May 4 17:30:38 2009
@@ -489,6 +489,9 @@
DefineBuiltinMacro(Buf, "__int16=short");
DefineBuiltinMacro(Buf, "__int32=int");
DefineBuiltinMacro(Buf, "__int64=long long");
+ // Both __PRETTY_FUNCTION__ and __FUNCTION__ are GCC extensions, however
+ // VC++ appears to only like __FUNCTION__.
+ DefineBuiltinMacro(Buf, "__PRETTY_FUNCTION__=__FUNCTION__");
}
More information about the cfe-commits
mailing list