diff options
author | Steve Naroff <snaroff@apple.com> | 2007-10-31 04:38:33 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-10-31 04:38:33 +0000 |
commit | 9165ad378f8d25eb5c378a8e9540089afce421ff (patch) | |
tree | 5a38ffa38b63b63d0c4cff4164f2a1527e20bbe4 /Lex/Preprocessor.cpp | |
parent | 8baaca50f07d0c10bba69c8d88c1b9078c92d06d (diff) |
Add some plumbing to help cope with rewriting "id<p>", "Class<p>*".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/Preprocessor.cpp')
-rw-r--r-- | Lex/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lex/Preprocessor.cpp b/Lex/Preprocessor.cpp index 784fb19e49..04b2a80f02 100644 --- a/Lex/Preprocessor.cpp +++ b/Lex/Preprocessor.cpp @@ -369,6 +369,7 @@ static void InitializePredefinedMacros(Preprocessor &PP, DefineBuiltinMacro(Buf, "__OBJC__=1"); if (PP.getLangOptions().ObjC2) DefineBuiltinMacro(Buf, "__OBJC2__=1"); + if (PP.getLangOptions().ObjC1) { const char *ObjcType; // Predefine all the ObjC goodies (traditionally declared in <objc/objc.h>). @@ -396,7 +397,6 @@ static void InitializePredefinedMacros(Preprocessor &PP, ObjcType = "extern SEL sel_getUid(const char *str);\n"; Buf.insert(Buf.end(), ObjcType, ObjcType+strlen(ObjcType)); } - // Add __builtin_va_list typedef. { const char *VAList = PP.getTargetInfo().getVAListDeclaration(); |