diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-04 06:50:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-04 06:50:57 +0000 |
commit | 32fca722dd974b8202d0fb9c71b6c185c0767da6 (patch) | |
tree | 4dcab62d65cc30aec108b053b4b000433ba896ba /include/clang/Lex/Preprocessor.h | |
parent | 0b2b6e1cb1573bb295c0a65813dc4df8d57f305b (diff) |
make the token lexer allocate its temporary token buffers for
preexpanded macro arguments from the preprocessor's bump pointer.
This reduces # mallocs from 12444 to 11792.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index ae7d3b6220..4f5def5c51 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -205,6 +205,8 @@ public: IdentifierTable &getIdentifierTable() { return Identifiers; } SelectorTable &getSelectorTable() { return Selectors; } + llvm::BumpPtrAllocator &getPreprocessorAllocator() { return BP; } + void setPTHManager(PTHManager* pm); |