summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-05-25 01:47:42 +0000
committerAndrew Trick <atrick@apple.com>2013-05-25 01:47:42 +0000
commitfc1c5fe9270c907e32feabf80deda0f8a30032a2 (patch)
treea21cbfff01dd73efc178b8ade9667b9d19eb71eb /llvm
parent977026c5f5233f1085a060e770951ac324b1e04d (diff)
downloadbcm5719-llvm-fc1c5fe9270c907e32feabf80deda0f8a30032a2.tar.gz
bcm5719-llvm-fc1c5fe9270c907e32feabf80deda0f8a30032a2.zip
Fix RecyclingAllocator::PrintStats to print the underlying allocator's stats.
llvm-svn: 182700
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/RecyclingAllocator.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/RecyclingAllocator.h b/llvm/include/llvm/Support/RecyclingAllocator.h
index 34ab874778c..f67503f6fb7 100644
--- a/llvm/include/llvm/Support/RecyclingAllocator.h
+++ b/llvm/include/llvm/Support/RecyclingAllocator.h
@@ -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();
+ }
};
}
OpenPOWER on IntegriCloud