From: Douglas Gregor Date: Thu, 26 Jan 2012 17:31:14 +0000 (+0000) Subject: Don't separately serialize the list of instance variables in an X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed0cc2269b93508c51e3a31f3922ee2efea875b7;p=clang Don't separately serialize the list of instance variables in an Objective-C class. The AST reader just throws away this data anyway! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149067 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp index 1f908e7651..a1f1933920 100644 --- a/lib/Serialization/ASTReaderDecl.cpp +++ b/lib/Serialization/ASTReaderDecl.cpp @@ -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 IVars; - IVars.reserve(NumIvars); - for (unsigned I = 0; I != NumIvars; ++I) - IVars.push_back(ReadDeclAs(Record, Idx)); - // Read the categories. ID->setCategoryList(ReadDeclAs(Record, Idx)); diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 4e8a4cf0d6..a6fae4f20d 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/lib/Serialization/ASTWriterDecl.cpp @@ -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); }