diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-12-10 19:40:23 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-12-10 19:40:23 +0000 |
commit | cf58e6249c6b018508e34bcb76202caa42d2451a (patch) | |
tree | dcf9f8daf95a9299c985a67a8ae2cfd9e29b99b7 /lib/Lex/PTHLexer.cpp | |
parent | c0febd58f5cbf4a93fd12f461863564dba0af76d (diff) |
Declare PerIDCache as IdentifierInfo** instead of void*. This is just cleaner. No performance change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PTHLexer.cpp')
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 9609930878..a92d578518 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -236,7 +236,7 @@ public: //===----------------------------------------------------------------------===// 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) {} @@ -324,7 +324,7 @@ IdentifierInfo* PTHManager::ReadIdentifierInfo(const char*& D) { --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. |