[cfe-commits] r152461 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Mar 9 16:53:02 PST 2012
Author: fjahanian
Date: Fri Mar 9 18:53:02 2012
New Revision: 152461
URL: http://llvm.org/viewvc/llvm-project?rev=152461&view=rev
Log:
Minor change to my last rewrite patch.
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=152461&r1=152460&r2=152461&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Fri Mar 9 18:53:02 2012
@@ -5849,7 +5849,12 @@
Result += "\n";
for (unsigned i =0, e = Ivars.size(); i < e; i++) {
ObjCIvarDecl *IvarDecl = Ivars[i];
- Result += "__declspec(dllexport) unsigned long int "; Result += VarName;
+ if (IvarDecl->getAccessControl() == ObjCIvarDecl::Private)
+ Result += "unsigned long int ";
+ else
+ Result += "__declspec(dllexport) unsigned long int ";
+
+ Result += VarName;
Result += ClassName; Result += "_";
Result += IvarDecl->getName();
Result += " __attribute__ ((used, section (\"__DATA,__objc_ivar\")))";
More information about the cfe-commits
mailing list