[cfe-commits] r64685 - /cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp

Steve Naroff snaroff at apple.com
Mon Feb 16 14:34:14 PST 2009


Author: snaroff
Date: Mon Feb 16 16:34:13 2009
New Revision: 64685

URL: http://llvm.org/viewvc/llvm-project?rev=64685&view=rev
Log:
Make symbol static...this breaks the rewrite for @protocol(expr), however I'll deal with that later.

Modified:
    cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp

Modified: cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp?rev=64685&r1=64684&r2=64685&view=diff

==============================================================================
--- cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp (original)
+++ cfe/branches/Apple/objective-rewrite/tools/clang/Driver/RewriteObjC.cpp Mon Feb 16 16:34:13 2009
@@ -2938,7 +2938,7 @@
     objc_protocol = true;
   }
   
-  Result += "\nstruct _objc_protocol _OBJC_PROTOCOL_";
+  Result += "\nstatic struct _objc_protocol _OBJC_PROTOCOL_";
   Result += PDecl->getNameAsString();
   Result += " __attribute__ ((used, section (\"__OBJC, __protocol\")))= "
     "{\n\t0, \"";





More information about the cfe-commits mailing list