diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 04:01:01 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 04:01:01 +0000 |
| commit | a3d677b0020a66cdbfeb8fb5e62efbb41fb4ad2f (patch) | |
| tree | 7d02063cf5fce21facb185152387cd391c8a2e81 /llvm/lib/Support | |
| parent | 53f92dc95be90a2d15a69c80f51446624ad8a4d2 (diff) | |
| download | bcm5719-llvm-a3d677b0020a66cdbfeb8fb5e62efbb41fb4ad2f.tar.gz bcm5719-llvm-a3d677b0020a66cdbfeb8fb5e62efbb41fb4ad2f.zip | |
Switch to raw_ostream.
llvm-svn: 76943
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/Allocator.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Support/Allocator.cpp b/llvm/lib/Support/Allocator.cpp index 4e4a75ee58c..230c421f1fe 100644 --- a/llvm/lib/Support/Allocator.cpp +++ b/llvm/lib/Support/Allocator.cpp @@ -14,7 +14,7 @@ #include "llvm/Support/Allocator.h" #include "llvm/Support/DataTypes.h" #include "llvm/Support/Recycler.h" -#include "llvm/Support/Streams.h" +#include "llvm/Support/raw_ostream.h" #include <cstring> namespace llvm { @@ -133,11 +133,11 @@ void BumpPtrAllocator::PrintStats() const { ++NumSlabs; } - cerr << "\nNumber of memory regions: " << NumSlabs << '\n' - << "Bytes used: " << BytesAllocated << '\n' - << "Bytes allocated: " << TotalMemory << '\n' - << "Bytes wasted: " << (TotalMemory - BytesAllocated) - << " (includes alignment, etc)\n"; + errs() << "\nNumber of memory regions: " << NumSlabs << '\n' + << "Bytes used: " << BytesAllocated << '\n' + << "Bytes allocated: " << TotalMemory << '\n' + << "Bytes wasted: " << (TotalMemory - BytesAllocated) + << " (includes alignment, etc)\n"; } MallocSlabAllocator BumpPtrAllocator::DefaultSlabAllocator = @@ -161,9 +161,9 @@ void MallocSlabAllocator::Deallocate(MemSlab *Slab) { void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize) { - cerr << "Recycler element size: " << Size << '\n' - << "Recycler element alignment: " << Align << '\n' - << "Number of elements free for recycling: " << FreeListSize << '\n'; + errs() << "Recycler element size: " << Size << '\n' + << "Recycler element alignment: " << Align << '\n' + << "Number of elements free for recycling: " << FreeListSize << '\n'; } } |

