When serializing FunctionDecl, serialize out a reference to the previous declaration.

llvm-svn: 51294
This commit is contained in:
Ted Kremenek 2008-05-20 03:33:58 +00:00
parent 69ddfbfe9e
commit 878ff6c04d
1 changed files with 2 additions and 0 deletions

View File

@ -362,6 +362,7 @@ void FunctionDecl::EmitImpl(Serializer& S) const {
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 @@ FunctionDecl* FunctionDecl::CreateImpl(Deserializer& D, ASTContext& C) {
decl->ValueDecl::ReadInRec(D, C);
D.ReadPtr(decl->DeclChain);
D.ReadPtr(decl->PreviousDeclaration);
Decl* next_declarator;