[cfe-commits] r50913 - /cfe/trunk/lib/Lex/Preprocessor.cpp
Steve Naroff
snaroff at apple.com
Fri May 9 13:52:28 PDT 2008
Author: snaroff
Date: Fri May 9 15:52:28 2008
New Revision: 50913
URL: http://llvm.org/viewvc/llvm-project?rev=50913&view=rev
Log:
DO NOT pre-defined __OBJC2__. The __OBJC2__ macro should only be defined when targeting the new, Apple 2.0 *runtime ABI*. It is not intended to be used to #ifdef ObjC 2.0 langauge features. This is unfortunate (given it's name). In a perfect world, this defined would be named __OBJC2_RUNTIME_ABI__. Oh well.
Modified:
cfe/trunk/lib/Lex/Preprocessor.cpp
Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=50913&r1=50912&r2=50913&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Fri May 9 15:52:28 2008
@@ -402,8 +402,6 @@
DefineBuiltinMacro(Buf, "__STDC_HOSTED__=1");
if (PP.getLangOptions().ObjC1)
DefineBuiltinMacro(Buf, "__OBJC__=1");
- if (PP.getLangOptions().ObjC2)
- DefineBuiltinMacro(Buf, "__OBJC2__=1");
// Add __builtin_va_list typedef.
{
More information about the cfe-commits
mailing list