Fix RecyclingAllocator::PrintStats to print the underlying allocator's stats.
authorAndrew Trick <atrick@apple.com>
Sat, 25 May 2013 01:47:42 +0000 (01:47 +0000)
committerAndrew Trick <atrick@apple.com>
Sat, 25 May 2013 01:47:42 +0000 (01:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182700 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/RecyclingAllocator.h

index 34ab874778c912bc7fba98459c5fd0f189138509..f67503f6fb7ada7516f77ac3c3e4304cc3d75740 100644 (file)
@@ -51,7 +51,10 @@ public:
   template<class SubClass>
   void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); }
 
-  void PrintStats() { Base.PrintStats(); }
+  void PrintStats() {
+    Allocator.PrintStats();
+    Base.PrintStats();
+  }
 };
 
 }