summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
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
commit2530efd3cfbbfdf1c7578230383b1e9920e827d6 (patch)
tree73bd758171ae629dbe7193fc6686afdb72a56344 /clang/lib/AST/ASTContext.cpp
parent87fb4e8fcda8bb2fe54913a83fcacc7830d5f5d3 (diff)
downloadbcm5719-llvm-2530efd3cfbbfdf1c7578230383b1e9920e827d6.tar.gz
bcm5719-llvm-2530efd3cfbbfdf1c7578230383b1e9920e827d6.zip
When printing statistics for the ASTContext, also print them for its BumpPtrAllocator
llvm-svn: 107790
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 1439ed14c06..4d950c0bfbc 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud