diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 04:37:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 04:37:46 +0000 |
commit | b25de3ff6051d69db87c12c8892cfa37ce6e7d64 (patch) | |
tree | a6d3f90619240ea8767377f971680ca7896975d5 /llvm/lib/Analysis/Trace.cpp | |
parent | 82e57a6b481bc016e85e39f254f3648594ddf8d2 (diff) | |
download | bcm5719-llvm-b25de3ff6051d69db87c12c8892cfa37ce6e7d64.tar.gz bcm5719-llvm-b25de3ff6051d69db87c12c8892cfa37ce6e7d64.zip |
eliminate the "Value" printing methods that print to a std::ostream.
This required converting a bunch of stuff off DOUT and other cleanups.
llvm-svn: 79819
Diffstat (limited to 'llvm/lib/Analysis/Trace.cpp')
-rw-r--r-- | llvm/lib/Analysis/Trace.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/Trace.cpp b/llvm/lib/Analysis/Trace.cpp index 31c7a19ff6c..c9b303b48b2 100644 --- a/llvm/lib/Analysis/Trace.cpp +++ b/llvm/lib/Analysis/Trace.cpp @@ -18,7 +18,7 @@ #include "llvm/Analysis/Trace.h" #include "llvm/Function.h" #include "llvm/Assembly/Writer.h" -#include "llvm/Support/Streams.h" +#include "llvm/Support/raw_ostream.h" using namespace llvm; Function *Trace::getFunction() const { @@ -31,8 +31,8 @@ Module *Trace::getModule() const { /// print - Write trace to output stream. /// -void Trace::print(std::ostream &O) const { - Function *F = getFunction (); +void Trace::print(raw_ostream &O) const { + Function *F = getFunction(); O << "; Trace from function " << F->getNameStr() << ", blocks:\n"; for (const_iterator i = begin(), e = end(); i != e; ++i) { O << "; "; @@ -46,5 +46,5 @@ void Trace::print(std::ostream &O) const { /// output stream. /// void Trace::dump() const { - print(cerr); + print(errs()); } |