[cfe-commits] r64642 - /cfe/trunk/lib/Lex/Preprocessor.cpp

Fariborz Jahanian fjahanian at apple.com
Mon Feb 16 10:28:48 PST 2009


Author: fjahanian
Date: Mon Feb 16 12:28:48 2009
New Revision: 64642

URL: http://llvm.org/viewvc/llvm-project?rev=64642&view=rev
Log:
define __OBJC2__ for objc's nonfragile abi.

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=64642&r1=64641&r2=64642&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Mon Feb 16 12:28:48 2009
@@ -476,6 +476,8 @@
   DefineBuiltinMacro(Buf, "__STDC_HOSTED__=1");
   if (PP.getLangOptions().ObjC1) {
     DefineBuiltinMacro(Buf, "__OBJC__=1");
+    if (PP.getLangOptions().ObjCNonFragileABI)
+      DefineBuiltinMacro(Buf, "__OBJC2__=1");
 
     if (PP.getLangOptions().getGCMode() == LangOptions::NonGC) {
       DefineBuiltinMacro(Buf, "__weak=");





More information about the cfe-commits mailing list