When serializing FunctionDecl, serialize out a reference to the previous declaration.
llvm-svn: 51294
This commit is contained in:
parent
69ddfbfe9e
commit
878ff6c04d
|
@ -362,6 +362,7 @@ void FunctionDecl::EmitImpl(Serializer& S) const {
|
||||||
S.EmitBool(IsInline); // From FunctionDecl.
|
S.EmitBool(IsInline); // From FunctionDecl.
|
||||||
ValueDecl::EmitInRec(S);
|
ValueDecl::EmitInRec(S);
|
||||||
S.EmitPtr(DeclChain);
|
S.EmitPtr(DeclChain);
|
||||||
|
S.EmitPtr(PreviousDeclaration);
|
||||||
|
|
||||||
// NOTE: We do not need to serialize out the number of parameters, because
|
// NOTE: We do not need to serialize out the number of parameters, because
|
||||||
// that is encoded in the type (accessed via getNumParams()).
|
// 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);
|
decl->ValueDecl::ReadInRec(D, C);
|
||||||
D.ReadPtr(decl->DeclChain);
|
D.ReadPtr(decl->DeclChain);
|
||||||
|
D.ReadPtr(decl->PreviousDeclaration);
|
||||||
|
|
||||||
Decl* next_declarator;
|
Decl* next_declarator;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue