[llvm-commits] CVS: llvm/include/llvm/Assembly/PrintModulePass.h
Bill Wendling
isanbard at gmail.com
Wed Dec 6 17:32:00 PST 2006
Changes in directory llvm/include/llvm/Assembly:
PrintModulePass.h updated: 1.20 -> 1.21
---
Log message:
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.
---
Diffs of the changes: (+8 -10)
PrintModulePass.h | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
Index: llvm/include/llvm/Assembly/PrintModulePass.h
diff -u llvm/include/llvm/Assembly/PrintModulePass.h:1.20 llvm/include/llvm/Assembly/PrintModulePass.h:1.21
--- llvm/include/llvm/Assembly/PrintModulePass.h:1.20 Tue Nov 28 17:31:42 2006
+++ llvm/include/llvm/Assembly/PrintModulePass.h Wed Dec 6 19:30:30 2006
@@ -25,13 +25,12 @@
namespace llvm {
class PrintModulePass : public ModulePass {
- llvm_ostream *Out; // ostream to print on
+ OStream *Out; // ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
- PrintModulePass() : Out(&llvm_cerr), DeleteStream(false) {}
- PrintModulePass(llvm_ostream *o, bool DS = false)
- : Out(o), DeleteStream(DS) {
- }
+ PrintModulePass() : Out(&cerr), DeleteStream(false) {}
+ PrintModulePass(OStream *o, bool DS = false)
+ : Out(o), DeleteStream(DS) {}
~PrintModulePass() {
if (DeleteStream) delete Out;
@@ -49,14 +48,13 @@
class PrintFunctionPass : public FunctionPass {
std::string Banner; // String to print before each function
- llvm_ostream *Out; // ostream to print on
+ OStream *Out; // ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
- PrintFunctionPass() : Banner(""), Out(&llvm_cerr), DeleteStream(false) {}
- PrintFunctionPass(const std::string &B, llvm_ostream *o = &llvm_cout,
+ PrintFunctionPass() : Banner(""), Out(&cerr), DeleteStream(false) {}
+ PrintFunctionPass(const std::string &B, OStream *o = &cout,
bool DS = false)
- : Banner(B), Out(o), DeleteStream(DS) {
- }
+ : Banner(B), Out(o), DeleteStream(DS) {}
inline ~PrintFunctionPass() {
if (DeleteStream) delete Out;
More information about the llvm-commits
mailing list