From 360a66e3d9f54f1fe239fc0cb60632cd531fce8a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 26 Jan 2012 17:31:14 +0000 Subject: [PATCH] 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 --- clang/lib/Serialization/ASTReaderDecl.cpp | 7 ------- clang/lib/Serialization/ASTWriterDecl.cpp | 6 ------ 2 files changed, 13 deletions(-) diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp index 1f908e765120..a1f19339207b 100644 --- a/clang/lib/Serialization/ASTReaderDecl.cpp +++ b/clang/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/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp index 4e8a4cf0d690..a6fae4f20da4 100644 --- a/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/clang/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); }