aboutsummaryrefslogtreecommitdiffstats
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
commitba3500e4d2f7a8646ea0f5a1acfaed832f8e062e (patch)
tree20343633cd6bd8378fe21761b841b6e1307086c5
parent725e3d324bae8259dadc669b89a87997da61ab14 (diff)
downloadexternal_llvm-ba3500e4d2f7a8646ea0f5a1acfaed832f8e062e.tar.gz
external_llvm-ba3500e4d2f7a8646ea0f5a1acfaed832f8e062e.tar.bz2
external_llvm-ba3500e4d2f7a8646ea0f5a1acfaed832f8e062e.zip
Fix RecyclingAllocator::PrintStats to print the underlying allocator's stats.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182700 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/RecyclingAllocator.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/RecyclingAllocator.h b/include/llvm/Support/RecyclingAllocator.h
index 34ab874778..f67503f6fb 100644
--- a/include/llvm/Support/RecyclingAllocator.h
+++ b/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();
+ }
};
}