mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 17:24:24 +00:00
Switch to raw_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e2663d076c
commit
7da9559c52
@ -14,7 +14,7 @@
|
|||||||
#include "llvm/Support/Allocator.h"
|
#include "llvm/Support/Allocator.h"
|
||||||
#include "llvm/Support/DataTypes.h"
|
#include "llvm/Support/DataTypes.h"
|
||||||
#include "llvm/Support/Recycler.h"
|
#include "llvm/Support/Recycler.h"
|
||||||
#include "llvm/Support/Streams.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
@ -133,11 +133,11 @@ void BumpPtrAllocator::PrintStats() const {
|
|||||||
++NumSlabs;
|
++NumSlabs;
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << "\nNumber of memory regions: " << NumSlabs << '\n'
|
errs() << "\nNumber of memory regions: " << NumSlabs << '\n'
|
||||||
<< "Bytes used: " << BytesAllocated << '\n'
|
<< "Bytes used: " << BytesAllocated << '\n'
|
||||||
<< "Bytes allocated: " << TotalMemory << '\n'
|
<< "Bytes allocated: " << TotalMemory << '\n'
|
||||||
<< "Bytes wasted: " << (TotalMemory - BytesAllocated)
|
<< "Bytes wasted: " << (TotalMemory - BytesAllocated)
|
||||||
<< " (includes alignment, etc)\n";
|
<< " (includes alignment, etc)\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
MallocSlabAllocator BumpPtrAllocator::DefaultSlabAllocator =
|
MallocSlabAllocator BumpPtrAllocator::DefaultSlabAllocator =
|
||||||
@ -161,9 +161,9 @@ void MallocSlabAllocator::Deallocate(MemSlab *Slab) {
|
|||||||
void PrintRecyclerStats(size_t Size,
|
void PrintRecyclerStats(size_t Size,
|
||||||
size_t Align,
|
size_t Align,
|
||||||
size_t FreeListSize) {
|
size_t FreeListSize) {
|
||||||
cerr << "Recycler element size: " << Size << '\n'
|
errs() << "Recycler element size: " << Size << '\n'
|
||||||
<< "Recycler element alignment: " << Align << '\n'
|
<< "Recycler element alignment: " << Align << '\n'
|
||||||
<< "Number of elements free for recycling: " << FreeListSize << '\n';
|
<< "Number of elements free for recycling: " << FreeListSize << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user