]> granicus.if.org Git - clang/commitdiff
Don't separately serialize the list of instance variables in an
authorDouglas Gregor <dgregor@apple.com>
Thu, 26 Jan 2012 17:31:14 +0000 (17:31 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 26 Jan 2012 17:31:14 +0000 (17:31 +0000)
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

lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp

index 1f908e765120bb5bd792455a09617e5ec0f24aa4..a1f19339207bd3576fcd2a00ebe064b35de444ae 100644 (file)
@@ -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));
   
index 4e8a4cf0d69063500a7f40d8e94d3e3a0b1b1b36..a6fae4f20da487308053c231af62f51d433021ba 100644 (file)
@@ -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);
   }