@@ -657,14 +657,6 @@ class ASTReader
657657 // / been loaded.
658658 std::vector<IdentifierInfo *> IdentifiersLoaded;
659659
660- using GlobalIdentifierMapType =
661- ContinuousRangeMap<serialization::IdentifierID, ModuleFile *, 4 >;
662-
663- // / Mapping from global identifier IDs to the module in which the
664- // / identifier resides along with the offset that should be added to the
665- // / global identifier ID to produce a local ID.
666- GlobalIdentifierMapType GlobalIdentifierMap;
667-
668660 // / A vector containing macros that have already been
669661 // / loaded.
670662 // /
@@ -1536,6 +1528,11 @@ class ASTReader
15361528 // / Translate a \param GlobalDeclID to the index of DeclsLoaded array.
15371529 unsigned translateGlobalDeclIDToIndex (GlobalDeclID ID) const ;
15381530
1531+ // / Translate an \param IdentifierID ID to the index of IdentifiersLoaded
1532+ // / array and the corresponding module file.
1533+ std::pair<ModuleFile *, unsigned >
1534+ translateIdentifierIDToIndex (serialization::IdentifierID ID) const ;
1535+
15391536public:
15401537 // / Load the AST file and validate its contents against the given
15411538 // / Preprocessor.
@@ -2120,7 +2117,7 @@ class ASTReader
21202117 // / Load a selector from disk, registering its ID if it exists.
21212118 void LoadSelector (Selector Sel);
21222119
2123- void SetIdentifierInfo (unsigned ID, IdentifierInfo *II);
2120+ void SetIdentifierInfo (serialization::IdentifierID ID, IdentifierInfo *II);
21242121 void SetGloballyVisibleDecls (IdentifierInfo *II,
21252122 const SmallVectorImpl<GlobalDeclID> &DeclIDs,
21262123 SmallVectorImpl<Decl *> *Decls = nullptr );
@@ -2145,10 +2142,10 @@ class ASTReader
21452142 return DecodeIdentifierInfo (ID);
21462143 }
21472144
2148- IdentifierInfo *getLocalIdentifier (ModuleFile &M, unsigned LocalID);
2145+ IdentifierInfo *getLocalIdentifier (ModuleFile &M, uint64_t LocalID);
21492146
21502147 serialization::IdentifierID getGlobalIdentifierID (ModuleFile &M,
2151- unsigned LocalID);
2148+ uint64_t LocalID);
21522149
21532150 void resolvePendingMacro (IdentifierInfo *II, const PendingMacroInfo &PMInfo);
21542151
0 commit comments