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:
Douglas Gregor 2012-01-26 17:31:14 +00:00
parent e6e5406122
commit 360a66e3d9
2 changed files with 0 additions and 13 deletions

View File

@ -705,13 +705,6 @@ void ASTDeclReader::VisitObjCInterfaceDecl(ObjCInterfaceDecl *ID) {
ID->data().AllReferencedProtocols.set(Protocols.data(), NumProtocols, ID->data().AllReferencedProtocols.set(Protocols.data(), NumProtocols,
Reader.getContext()); 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. // Read the categories.
ID->setCategoryList(ReadDeclAs<ObjCCategoryDecl>(Record, Idx)); ID->setCategoryList(ReadDeclAs<ObjCCategoryDecl>(Record, Idx));

View File

@ -481,12 +481,6 @@ void ASTDeclWriter::VisitObjCInterfaceDecl(ObjCInterfaceDecl *D) {
P != PEnd; ++P) P != PEnd; ++P)
Writer.AddDeclRef(*P, Record); 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); Writer.AddDeclRef(D->getCategoryList(), Record);
} }