From 3472430ae163ab0a4d2839db3d9b0d5a54871808 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 7 Jul 2010 16:40:34 +0000 Subject: [PATCH] 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 --- lib/AST/ASTContext.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.40.0