diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-12-03 00:38:03 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-12-03 00:38:03 +0000 |
commit | 0c6a77bc1f52f282a969538f139ebde429076ed3 (patch) | |
tree | 01dc89148f8a7cbec4bc1a74c7ab80b2731bfe8a /include/clang/Lex/PTHManager.h | |
parent | 6fec64874f282f7084d5c626e42241cdcbafac9d (diff) |
- Remove PTHManager.cpp. Move all of its functions to PTHLexer.cpp since some of the internal methods are used by PTHLexer (their implementations are intertwined.) This enables some important inlining opportunities at -O3.
- Don't construct an std::vector<Token> prior to feeding PTH tokens to the Preprocessor. Stream them off the PTH file directly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/PTHManager.h')
-rw-r--r-- | include/clang/Lex/PTHManager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clang/Lex/PTHManager.h b/include/clang/Lex/PTHManager.h index fc37a8a151..3a45194410 100644 --- a/include/clang/Lex/PTHManager.h +++ b/include/clang/Lex/PTHManager.h @@ -27,8 +27,12 @@ namespace clang { class FileEntry; class IdentifierInfo; class IdentifierTable; +class PTHLexer; class PTHManager { + + friend class PTHLexer; + /// The memory mapped PTH file. const llvm::MemoryBuffer* Buf; @@ -64,9 +68,6 @@ class PTHManager { /// ReadIdentifierInfo - Used by PTHManager to reconstruct IdentifierInfo /// objects from the PTH file. IdentifierInfo* ReadIdentifierInfo(const char*& D); - - /// ReadToken - Used by PTHManager to read tokens from the PTH file. - void ReadToken(const char*& D, unsigned FileID, Token& T); public: |