forked from OSchip/llvm-project
Don't separately serialize the list of instance variables in an
Objective-C class. The AST reader just throws away this data anyway! llvm-svn: 149067
This commit is contained in:
parent
e6e5406122
commit
360a66e3d9
|
@ -705,13 +705,6 @@ void ASTDeclReader::VisitObjCInterfaceDecl(ObjCInterfaceDecl *ID) {
|
|||
ID->data().AllReferencedProtocols.set(Protocols.data(), NumProtocols,
|
||||
Reader.getContext());
|
||||
|
||||
// Read the ivars.
|
||||
unsigned NumIvars = Record[Idx++];
|
||||
SmallVector<ObjCIvarDecl *, 16> IVars;
|
||||
IVars.reserve(NumIvars);
|
||||
for (unsigned I = 0; I != NumIvars; ++I)
|
||||
IVars.push_back(ReadDeclAs<ObjCIvarDecl>(Record, Idx));
|
||||
|
||||
// Read the categories.
|
||||
ID->setCategoryList(ReadDeclAs<ObjCCategoryDecl>(Record, Idx));
|
||||
|
||||
|
|
|
@ -481,12 +481,6 @@ void ASTDeclWriter::VisitObjCInterfaceDecl(ObjCInterfaceDecl *D) {
|
|||
P != PEnd; ++P)
|
||||
Writer.AddDeclRef(*P, Record);
|
||||
|
||||
// Write out the ivars.
|
||||
Record.push_back(D->ivar_size());
|
||||
for (ObjCInterfaceDecl::ivar_iterator I = D->ivar_begin(),
|
||||
IEnd = D->ivar_end(); I != IEnd; ++I)
|
||||
Writer.AddDeclRef(*I, Record);
|
||||
|
||||
Writer.AddDeclRef(D->getCategoryList(), Record);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue