/// IdMap - A lazily generated cache mapping from persistent identifiers to
/// IdentifierInfo*.
- void* PerIDCache;
+ IdentifierInfo** PerIDCache;
/// FileLookup - Abstract data structure used for mapping between files
/// and token data in the PTH file.
/// This constructor is intended to only be called by the static 'Create'
/// method.
PTHManager(const llvm::MemoryBuffer* buf, void* fileLookup,
- const char* idDataTable, void* perIDCache, Preprocessor& pp);
+ const char* idDataTable, IdentifierInfo** perIDCache,
+ Preprocessor& pp);
// Do not implement.
PTHManager();
//===----------------------------------------------------------------------===//
PTHManager::PTHManager(const llvm::MemoryBuffer* buf, void* fileLookup,
- const char* idDataTable, void* perIDCache,
+ const char* idDataTable, IdentifierInfo** perIDCache,
Preprocessor& pp)
: Buf(buf), PerIDCache(perIDCache), FileLookup(fileLookup),
IdDataTable(idDataTable), ITable(pp.getIdentifierTable()), PP(pp) {}
--persistentID;
// Check if the IdentifierInfo has already been resolved.
- IdentifierInfo*& II = ((IdentifierInfo**) PerIDCache)[persistentID];
+ IdentifierInfo*& II = PerIDCache[persistentID];
if (II) return II;
// Look in the PTH file for the string data for the IdentifierInfo object.