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 | 0c7e8058deab0516923bcc070ae49b35e005b8e0 (patch) | |
tree | 8bcce6f42faccb09771bdfaeb851cf1abb4c9e6a /lib/Lex/Preprocessor.cpp | |
parent | 618916e05be0283f969d2e8ac87517ea0b6dae6b (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 89073276a9..ccc9a8781f 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/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. { |