@@ -660,14 +660,6 @@ class ASTReader
660
660
// / been loaded.
661
661
std::vector<IdentifierInfo *> IdentifiersLoaded;
662
662
663
- using GlobalIdentifierMapType =
664
- ContinuousRangeMap<serialization::IdentifierID, ModuleFile *, 4 >;
665
-
666
- // / Mapping from global identifier IDs to the module in which the
667
- // / identifier resides along with the offset that should be added to the
668
- // / global identifier ID to produce a local ID.
669
- GlobalIdentifierMapType GlobalIdentifierMap;
670
-
671
663
// / A vector containing macros that have already been
672
664
// / loaded.
673
665
// /
@@ -1539,6 +1531,11 @@ class ASTReader
1539
1531
// / Translate a \param GlobalDeclID to the index of DeclsLoaded array.
1540
1532
unsigned translateGlobalDeclIDToIndex (GlobalDeclID ID) const ;
1541
1533
1534
+ // / Translate an \param IdentifierID ID to the index of IdentifiersLoaded
1535
+ // / array and the corresponding module file.
1536
+ std::pair<ModuleFile *, unsigned >
1537
+ translateIdentifierIDToIndex (serialization::IdentifierID ID) const ;
1538
+
1542
1539
public:
1543
1540
// / Load the AST file and validate its contents against the given
1544
1541
// / Preprocessor.
@@ -2123,7 +2120,7 @@ class ASTReader
2123
2120
// / Load a selector from disk, registering its ID if it exists.
2124
2121
void LoadSelector (Selector Sel);
2125
2122
2126
- void SetIdentifierInfo (unsigned ID, IdentifierInfo *II);
2123
+ void SetIdentifierInfo (serialization::IdentifierID ID, IdentifierInfo *II);
2127
2124
void SetGloballyVisibleDecls (IdentifierInfo *II,
2128
2125
const SmallVectorImpl<GlobalDeclID> &DeclIDs,
2129
2126
SmallVectorImpl<Decl *> *Decls = nullptr );
@@ -2150,10 +2147,10 @@ class ASTReader
2150
2147
return DecodeIdentifierInfo (ID);
2151
2148
}
2152
2149
2153
- IdentifierInfo *getLocalIdentifier (ModuleFile &M, unsigned LocalID);
2150
+ IdentifierInfo *getLocalIdentifier (ModuleFile &M, uint64_t LocalID);
2154
2151
2155
2152
serialization::IdentifierID getGlobalIdentifierID (ModuleFile &M,
2156
- unsigned LocalID);
2153
+ uint64_t LocalID);
2157
2154
2158
2155
void resolvePendingMacro (IdentifierInfo *II, const PendingMacroInfo &PMInfo);
2159
2156
0 commit comments