diff options
| author | Steve Naroff <snaroff@apple.com> | 2008-05-09 20:52:28 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2008-05-09 20:52:28 +0000 |
| commit | 530c3f9403c76660dc0b72bbfc5c9eae7b5e2182 (patch) | |
| tree | 0967d8faaea855162cce152197f4c10530e62aad /clang/lib/Lex/Preprocessor.cpp | |
| parent | 42d46f2aa3ad336d3a54cc0222aa78753393de5b (diff) | |
| download | bcm5719-llvm-530c3f9403c76660dc0b72bbfc5c9eae7b5e2182.tar.gz bcm5719-llvm-530c3f9403c76660dc0b72bbfc5c9eae7b5e2182.zip | |
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.
llvm-svn: 50913
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
| -rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 89073276a9f..ccc9a8781ff 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -402,8 +402,6 @@ static void InitializePredefinedMacros(Preprocessor &PP, 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. { |

