When printing statistics for the ASTContext, also print them for its BumpPtrAllocator

llvm-svn: 107790
This commit is contained in:
Douglas Gregor 2010-07-07 16:40:34 +00:00
parent 87fb4e8fcd
commit 2530efd3cf
1 changed files with 3 additions and 0 deletions

View File

@ -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();