]> granicus.if.org Git - clang/commitdiff
When printing statistics for the ASTContext, also print them for its BumpPtrAllocator
authorDouglas Gregor <dgregor@apple.com>
Wed, 7 Jul 2010 16:40:34 +0000 (16:40 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 7 Jul 2010 16:40:34 +0000 (16:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107790 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 1439ed14c064ee23a68a8209afc402fc494e3542..4d950c0bfbcee1b4a5e3bb8eeb1ee489046c6be6 100644 (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();