[cfe-commits] r51294 - /cfe/trunk/lib/AST/DeclSerialization.cpp
Ted Kremenek
kremenek at apple.com
Mon May 19 20:33:58 PDT 2008
Author: kremenek
Date: Mon May 19 22:33:58 2008
New Revision: 51294
URL: http://llvm.org/viewvc/llvm-project?rev=51294&view=rev
Log:
When serializing FunctionDecl, serialize out a reference to the previous declaration.
Modified:
cfe/trunk/lib/AST/DeclSerialization.cpp
Modified: cfe/trunk/lib/AST/DeclSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclSerialization.cpp?rev=51294&r1=51293&r2=51294&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclSerialization.cpp (original)
+++ cfe/trunk/lib/AST/DeclSerialization.cpp Mon May 19 22:33:58 2008
@@ -362,6 +362,7 @@
S.EmitBool(IsInline); // From FunctionDecl.
ValueDecl::EmitInRec(S);
S.EmitPtr(DeclChain);
+ S.EmitPtr(PreviousDeclaration);
// NOTE: We do not need to serialize out the number of parameters, because
// that is encoded in the type (accessed via getNumParams()).
@@ -387,6 +388,7 @@
decl->ValueDecl::ReadInRec(D, C);
D.ReadPtr(decl->DeclChain);
+ D.ReadPtr(decl->PreviousDeclaration);
Decl* next_declarator;
More information about the cfe-commits
mailing list