[llvm-commits] CVS: llvm/include/llvm/Assembly/PrintModulePass.h
Bill Wendling
isanbard at gmail.com
Tue Nov 28 15:31:58 PST 2006
Changes in directory llvm/include/llvm/Assembly:
PrintModulePass.h updated: 1.19 -> 1.20
---
Log message:
Support for llvm_ostreams.
---
Diffs of the changes: (+7 -7)
PrintModulePass.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
Index: llvm/include/llvm/Assembly/PrintModulePass.h
diff -u llvm/include/llvm/Assembly/PrintModulePass.h:1.19 llvm/include/llvm/Assembly/PrintModulePass.h:1.20
--- llvm/include/llvm/Assembly/PrintModulePass.h:1.19 Sun May 28 21:32:43 2006
+++ llvm/include/llvm/Assembly/PrintModulePass.h Tue Nov 28 17:31:42 2006
@@ -20,16 +20,16 @@
#include "llvm/Pass.h"
#include "llvm/Module.h"
-#include <iostream>
+#include "llvm/Support/Streams.h"
namespace llvm {
class PrintModulePass : public ModulePass {
- std::ostream *Out; // ostream to print on
+ llvm_ostream *Out; // ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
- PrintModulePass() : Out(&std::cerr), DeleteStream(false) {}
- PrintModulePass(std::ostream *o, bool DS = false)
+ PrintModulePass() : Out(&llvm_cerr), DeleteStream(false) {}
+ PrintModulePass(llvm_ostream *o, bool DS = false)
: Out(o), DeleteStream(DS) {
}
@@ -49,11 +49,11 @@
class PrintFunctionPass : public FunctionPass {
std::string Banner; // String to print before each function
- std::ostream *Out; // ostream to print on
+ llvm_ostream *Out; // ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
- PrintFunctionPass() : Banner(""), Out(&std::cerr), DeleteStream(false) {}
- PrintFunctionPass(const std::string &B, std::ostream *o = &std::cout,
+ PrintFunctionPass() : Banner(""), Out(&llvm_cerr), DeleteStream(false) {}
+ PrintFunctionPass(const std::string &B, llvm_ostream *o = &llvm_cout,
bool DS = false)
: Banner(B), Out(o), DeleteStream(DS) {
}
More information about the llvm-commits
mailing list