aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-12 03:26:59 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-12 03:26:59 +0000
commit337edcdbec05316b407d0d64865c88ff8597d910 (patch)
treec2f9615730330f1f26813c2ffec4a116915802b4 /include/clang/Lex/Preprocessor.h
parent96438f319bb07d9a40564b5e01333f82c0c8a61e (diff)
PTH: Cache stat information for files in the PTH file. Hook up FileManager
to use this stat information in the PTH file using a 'StatSysCallCache' object. Performance impact (Cocoa.h, PTH): - number of stat calls reduces from 1230 to 425 - fsyntax-only: time improves by 4.2% We can reduce the number of stat calls to almost zero by caching negative stat calls and directory stat calls in the PTH file as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 94a7ef45b3..5200725ba1 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -206,7 +206,7 @@ public:
IdentifierTable &getIdentifierTable() { return Identifiers; }
SelectorTable &getSelectorTable() { return Selectors; }
- void setPTHManager(PTHManager* pm) { PTH.reset(pm); }
+ void setPTHManager(PTHManager* pm);
/// SetCommentRetentionState - Control whether or not the preprocessor retains
/// comments in output.