objc modern rewriter: don't export @package ivar symbols.

llvm-svn: 152469
This commit is contained in:
Fariborz Jahanian 2012-03-10 01:34:42 +00:00
parent 8fdb59f979
commit c9295ec7d2
1 changed files with 2 additions and 1 deletions

View File

@ -5849,7 +5849,8 @@ static void Write_IvarOffsetVar(std::string &Result,
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 ";