aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/PTHManager.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-12-03 01:16:39 +0000
committerTed Kremenek <kremenek@apple.com>2008-12-03 01:16:39 +0000
commit6183e4815a4019e97ad01bd880f12355599b75fd (patch)
tree589e27bf701ddb8451dcf14128bef726733a3477 /include/clang/Lex/PTHManager.h
parent15f081de2c8ac7deadf5d938b458b20732230cd9 (diff)
PTH:
Use an array instead of a DenseMap to cache persistent IDs -> IdentifierInfo*. This leads to a 4% speedup at -fsyntax-only using PTH. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/PTHManager.h')
-rw-r--r--include/clang/Lex/PTHManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Lex/PTHManager.h b/include/clang/Lex/PTHManager.h
index 3a45194410..c9b7b52ec1 100644
--- a/include/clang/Lex/PTHManager.h
+++ b/include/clang/Lex/PTHManager.h
@@ -38,7 +38,7 @@ class PTHManager {
/// IdMap - A lazily generated cache mapping from persistent identifiers to
/// IdentifierInfo*.
- void* PersistentIDCache;
+ void* PerIDCache;
/// FileLookup - Abstract data structure used for mapping between files
/// and token data in the PTH file.
@@ -59,7 +59,7 @@ class PTHManager {
/// This constructor is intended to only be called by the static 'Create'
/// method.
PTHManager(const llvm::MemoryBuffer* buf, void* fileLookup,
- const char* idDataTable, Preprocessor& pp);
+ const char* idDataTable, void* perIDCache, Preprocessor& pp);
// Do not implement.
PTHManager();