aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-07 16:40:34 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-07 16:40:34 +0000
commit3472430ae163ab0a4d2839db3d9b0d5a54871808 (patch)
tree1c74e408a96e1bdfbb1152cebeebe09093d02921
parent38e317d6dce161b249508686cc67eb7176958762 (diff)
When printing statistics for the ASTContext, also print them for its BumpPtrAllocator
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107790 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/ASTContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 1439ed14c0..4d950c0bfb 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -275,6 +275,9 @@ void ASTContext::PrintStats() const {
fprintf(stderr, " %u/%u implicit destructors created\n",
NumImplicitDestructorsDeclared, NumImplicitDestructors);
+ if (!FreeMemory)
+ BumpAlloc.PrintStats();
+
if (ExternalSource.get()) {
fprintf(stderr, "\n");
ExternalSource->PrintStats();