diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-19 19:00:47 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-19 19:00:47 +0000 |
commit | fc529f7fcafe7da0b8a32621e13685891e8ce52a (patch) | |
tree | f2ddd830e7bbfe26fc1a5e900ef5755849433a71 /include/clang/Serialization | |
parent | f63b0a5f5445830a845895ee16f3affeaffd2e9d (diff) |
Once we have fully deserialized a redeclaration chain for something
with a definition pointer (e.g., C++ and Objective-C classes), zip
through the redeclaration chain to make sure that all of the
declarations point to the definition data.
As part of this, realized again why the first redeclaration of an
entity in a file is important, and brought back that idea.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization')
-rw-r--r-- | include/clang/Serialization/ASTReader.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index 10ed5dceea..507b75f33c 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -338,7 +338,10 @@ private: /// the DefinitionData pointer of all pending references. PendingForwardRefsMap PendingForwardRefs; - + /// \brief The set of C++ or Objective-C classes that have forward + /// declarations that have not yet been linked to their definitions. + llvm::SmallPtrSet<Decl *, 4> PendingDefinitions; + typedef llvm::DenseMap<serialization::DeclID, serialization::DeclID> FirstLatestDeclIDMap; /// \brief Map of first declarations from a chained PCH that point to the |