aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-20 22:46:43 +0000
committerChris Lattner <sabre@nondot.org>2009-02-20 22:46:43 +0000
commit685befeb5f6472585bae473a6389e47cab9eac67 (patch)
treecab14a56b509e71a75dcc59581339c5425b066fe /lib/Lex/Preprocessor.cpp
parentcf29e0716bb3ecbbc15b74cd648367d6b075fdf0 (diff)
switch the macroinfo argument lists from being allocated off the heap
to being allocated from the same bumpptr that the MacroInfo objects themselves are. This speeds up -Eonly cocoa.h pth by ~4%, fsyntax-only is barely measurable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r--lib/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index a85b5db6d6..ccb179d1e4 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/lib/Lex/Preprocessor.cpp
@@ -101,7 +101,7 @@ Preprocessor::~Preprocessor() {
// will be released when the BumpPtrAllocator 'BP' object gets
// destroyed. We still need to run the dstor, however, to free
// memory alocated by MacroInfo.
- I->second->Destroy();
+ I->second->Destroy(BP);
I->first->setHasMacroDefinition(false);
}