diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-19 21:09:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-19 21:09:25 +0000 |
commit | a126651270acf17c434f60f86a3ab3687f87813a (patch) | |
tree | 05114b78153f0efc77166a6cb5b45bd0c769c737 /include/clang/Serialization | |
parent | 00852e41261f9860233d3b407fce0506346cdacb (diff) |
Eliminate the first->last redeclaration map from the AST file
format. It's no longer being used, now that we have a new
implementation of redeclaration chains.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization')
-rw-r--r-- | include/clang/Serialization/ASTBitCodes.h | 18 | ||||
-rw-r--r-- | include/clang/Serialization/ASTReader.h | 6 |
2 files changed, 7 insertions, 17 deletions
diff --git a/include/clang/Serialization/ASTBitCodes.h b/include/clang/Serialization/ASTBitCodes.h index cce6916b4e..a4b6b8f45e 100644 --- a/include/clang/Serialization/ASTBitCodes.h +++ b/include/clang/Serialization/ASTBitCodes.h @@ -366,10 +366,10 @@ namespace clang { /// \brief Record code for an update to the TU's lexically contained /// declarations. TU_UPDATE_LEXICAL = 28, - - /// \brief Record code for an update to first decls pointing to the - /// latest redeclarations. - REDECLS_UPDATE_LATEST = 29, + + /// \brief Record code for the array describing the first/last local + /// redeclarations of each entity. + LOCAL_REDECLARATIONS = 29, /// \brief Record code for declarations that Sema keeps references of. SEMA_DECL_REFS = 30, @@ -445,18 +445,14 @@ namespace clang { /// \brief Record code for ObjC categories in a module that are chained to /// an interface. - OBJC_CHAINED_CATEGORIES, + OBJC_CHAINED_CATEGORIES = 49, /// \brief Record code for a file sorted array of DeclIDs in a module. - FILE_SORTED_DECLS, + FILE_SORTED_DECLS = 50, /// \brief Record code for an array of all of the (sub)modules that were /// imported by the AST file. - IMPORTED_MODULES, - - /// \brief Record code for the array describing the first/last local - /// redeclarations of each entity. - LOCAL_REDECLARATIONS + IMPORTED_MODULES = 51 }; /// \brief Record types used within a source manager block. diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index bbeacb4f22..fd0a897518 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -333,12 +333,6 @@ private: /// 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 - /// most recent declarations in another AST file. - FirstLatestDeclIDMap FirstLatestDeclIDs; - /// \brief Set of ObjC interfaces that have categories chained to them in /// other modules. llvm::DenseSet<serialization::GlobalDeclID> ObjCChainedCategoriesInterfaces; |