diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-20 03:33:58 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-20 03:33:58 +0000 |
commit | 878ff6c04d12e9459e3cf2cd745c0a97236819d0 (patch) | |
tree | 917db2cc594c6cf44c7c1865ff05049326168214 /clang | |
parent | 69ddfbfe9e647b1a445be8c99f5c703b985c54c4 (diff) | |
download | bcm5719-llvm-878ff6c04d12e9459e3cf2cd745c0a97236819d0.tar.gz bcm5719-llvm-878ff6c04d12e9459e3cf2cd745c0a97236819d0.zip |
When serializing FunctionDecl, serialize out a reference to the previous declaration.
llvm-svn: 51294
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/AST/DeclSerialization.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclSerialization.cpp b/clang/lib/AST/DeclSerialization.cpp index d2dde67cb2f..bbc28ab6d78 100644 --- a/clang/lib/AST/DeclSerialization.cpp +++ b/clang/lib/AST/DeclSerialization.cpp @@ -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; |