From 2530efd3cfbbfdf1c7578230383b1e9920e827d6 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 7 Jul 2010 16:40:34 +0000 Subject: When printing statistics for the ASTContext, also print them for its BumpPtrAllocator llvm-svn: 107790 --- clang/lib/AST/ASTContext.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/AST/ASTContext.cpp') 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(); -- cgit v1.2.3