[llvm-commits] [llvm] r76943 - /llvm/trunk/lib/Support/Allocator.cpp

Reid Kleckner reid.kleckner at gmail.com
Fri Jul 24 09:58:56 PDT 2009


FWIW, I made that change in my patch, and Chris told me that that file
shouldn't depend on raw_ostream.

Reid

On Thu, Jul 23, 2009 at 9:01 PM, Daniel Dunbar<daniel at zuster.org> wrote:
> Author: ddunbar
> Date: Thu Jul 23 23:01:01 2009
> New Revision: 76943
>
> URL: http://llvm.org/viewvc/llvm-project?rev=76943&view=rev
> Log:
> Switch to raw_ostream.
>
> Modified:
>    llvm/trunk/lib/Support/Allocator.cpp
>
> Modified: llvm/trunk/lib/Support/Allocator.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Allocator.cpp?rev=76943&r1=76942&r2=76943&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Support/Allocator.cpp (original)
> +++ llvm/trunk/lib/Support/Allocator.cpp Thu Jul 23 23:01:01 2009
> @@ -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 @@
>     ++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 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';
>  }
>
>  }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list