diff options
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Allocator.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Support/Allocator.cpp b/lib/Support/Allocator.cpp index ba6a393c81..584ca125b7 100644 --- a/lib/Support/Allocator.cpp +++ b/lib/Support/Allocator.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/Allocator.h" +#include "llvm/Support/Recycler.h" #include "llvm/Support/DataTypes.h" #include "llvm/Support/Streams.h" #include <ostream> @@ -130,3 +131,9 @@ void BumpPtrAllocator::PrintStats() const { cerr << "\nNumber of memory regions: " << NumRegions << "\n"; cerr << "Bytes allocated: " << BytesUsed << "\n"; } + +void llvm::PrintRecyclerStats(size_t LargestTypeSize, + size_t FreeListSize) { + cerr << "Recycler element size: " << LargestTypeSize << '\n'; + cerr << "Number of elements free for recycling: " << FreeListSize << '\n'; +} |