[cfe-commits] r152469 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Mar 9 17:34:42 PST 2012
Author: fjahanian
Date: Fri Mar 9 19:34:42 2012
New Revision: 152469
URL: http://llvm.org/viewvc/llvm-project?rev=152469&view=rev
Log:
objc modern rewriter: don't export @package ivar symbols.
Modified:
cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=152469&r1=152468&r2=152469&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Fri Mar 9 19:34:42 2012
@@ -5849,7 +5849,8 @@
Result += "\n";
for (unsigned i =0, e = Ivars.size(); i < e; i++) {
ObjCIvarDecl *IvarDecl = Ivars[i];
- if (IvarDecl->getAccessControl() == ObjCIvarDecl::Private)
+ if (IvarDecl->getAccessControl() == ObjCIvarDecl::Private ||
+ IvarDecl->getAccessControl() == ObjCIvarDecl::Package)
Result += "unsigned long int ";
else
Result += "__declspec(dllexport) unsigned long int ";
More information about the cfe-commits
mailing list