[cfe-commits] r43741 - /cfe/trunk/Basic/IdentifierTable.cpp

Ted Kremenek kremenek at apple.com
Mon Nov 5 14:42:33 PST 2007


Author: kremenek
Date: Mon Nov  5 16:42:32 2007
New Revision: 43741

URL: http://llvm.org/viewvc/llvm-project?rev=43741&view=rev
Log:
Added registration to deserialization engine of IdentifierInfo* as
IdentifierInfos are deserialized.

Modified:
    cfe/trunk/Basic/IdentifierTable.cpp

Modified: cfe/trunk/Basic/IdentifierTable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/IdentifierTable.cpp?rev=43741&r1=43740&r2=43741&view=diff

==============================================================================
--- cfe/trunk/Basic/IdentifierTable.cpp (original)
+++ cfe/trunk/Basic/IdentifierTable.cpp Mon Nov  5 16:42:32 2007
@@ -415,6 +415,7 @@
   
   for (clang::IdentifierTable::iterator I=T.begin(), E=T.end(); I != E; ++I) {
     S.EmitCStr(I->getKeyData());
+    S.EmitPtr(&I->getValue());
     S.Emit(I->getValue());
   }
 }
@@ -428,6 +429,7 @@
   for (unsigned i = 0; i < len; ++i) {
     D.ReadCStr(buff);
     IdentifierInfo& Info = T.get(&buff[0],&buff[0]+buff.size());
+    D.RegisterPtr(&Info);
     D.Read(Info);
   }
 }





More information about the cfe-commits mailing list