forked from OSchip/llvm-project
objc modern rewriter: don't export @package ivar symbols.
llvm-svn: 152469
This commit is contained in:
parent
8fdb59f979
commit
c9295ec7d2
|
@ -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 ";
|
||||
|
|
Loading…
Reference in New Issue