summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PTHLexer.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-12-10 19:40:23 +0000
committerTed Kremenek <kremenek@apple.com>2008-12-10 19:40:23 +0000
commitd40ab7b72a39fd6cf189c33087e32670eefa895b (patch)
treef83540ecc86c349decc1b82890c8eb29ebc163f6 /clang/lib/Lex/PTHLexer.cpp
parent68e167df8e7ace73965fe501605a0d5196b51ce0 (diff)
downloadbcm5719-llvm-d40ab7b72a39fd6cf189c33087e32670eefa895b.tar.gz
bcm5719-llvm-d40ab7b72a39fd6cf189c33087e32670eefa895b.zip
Declare PerIDCache as IdentifierInfo** instead of void*. This is just cleaner. No performance change.
llvm-svn: 60843
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r--clang/lib/Lex/PTHLexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp
index 96099308782..a92d578518b 100644
--- a/clang/lib/Lex/PTHLexer.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud