[cfe-commits] r149067 - in /cfe/trunk/lib/Serialization: ASTReaderDecl.cpp ASTWriterDecl.cpp
Douglas Gregor
dgregor at apple.com
Thu Jan 26 09:31:14 PST 2012
Author: dgregor
Date: Thu Jan 26 11:31:14 2012
New Revision: 149067
URL: http://llvm.org/viewvc/llvm-project?rev=149067&view=rev
Log:
Don't separately serialize the list of instance variables in an
Objective-C class. The AST reader just throws away this data anyway!
Modified:
cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
cfe/trunk/lib/Serialization/ASTWriterDecl.cpp
Modified: cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReaderDecl.cpp?rev=149067&r1=149066&r2=149067&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReaderDecl.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReaderDecl.cpp Thu Jan 26 11:31:14 2012
@@ -705,13 +705,6 @@
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));
Modified: cfe/trunk/lib/Serialization/ASTWriterDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriterDecl.cpp?rev=149067&r1=149066&r2=149067&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriterDecl.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriterDecl.cpp Thu Jan 26 11:31:14 2012
@@ -481,12 +481,6 @@
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);
}
More information about the cfe-commits
mailing list