Changes in directory llvm/include/llvm/Bytecode:
WriteBytecodePass.h updated: 1.17 -> 1.18 Writer.h updated: 1.12 -> 1.13 --- 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: (+7 -7) WriteBytecodePass.h | 9 ++++----- Writer.h | 5 +++-- 2 files changed, 7 insertions(+), 7 deletions(-) Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.17 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.18 --- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.17 Tue Nov 28 18:19:40 2006 +++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Wed Dec 6 19:30:30 2006 @@ -17,19 +17,18 @@ #include "llvm/Pass.h" #include "llvm/Bytecode/Writer.h" +#include "llvm/Support/Streams.h" namespace llvm { -class llvm_ostream; - class WriteBytecodePass : public ModulePass { - llvm_ostream *Out; // ostream to print on + OStream *Out; // ostream to print on bool DeleteStream; bool CompressFile; public: WriteBytecodePass() - : Out(&llvm_cout), DeleteStream(false), CompressFile(true) {} - WriteBytecodePass(llvm_ostream *o, bool DS = false, bool CF = true) + : Out(&cout), DeleteStream(false), CompressFile(true) {} + WriteBytecodePass(OStream *o, bool DS = false, bool CF = true) : Out(o), DeleteStream(DS), CompressFile(CF) {} inline ~WriteBytecodePass() { Index: llvm/include/llvm/Bytecode/Writer.h diff -u llvm/include/llvm/Bytecode/Writer.h:1.12 llvm/include/llvm/Bytecode/Writer.h:1.13 --- llvm/include/llvm/Bytecode/Writer.h:1.12 Tue Nov 28 18:19:40 2006 +++ llvm/include/llvm/Bytecode/Writer.h Wed Dec 6 19:30:30 2006 @@ -15,13 +15,14 @@ #ifndef LLVM_BYTECODE_WRITER_H #define LLVM_BYTECODE_WRITER_H +#include "llvm/Support/Streams.h" + namespace llvm { - class llvm_ostream; class Module; /// WriteBytecodeToFile - Write the specified module to the specified output /// stream. If compress is set to true, try to use compression when writing /// out the file. This can never fail if M is a well-formed module. - void WriteBytecodeToFile(const Module *M, llvm_ostream &Out, + void WriteBytecodeToFile(const Module *M, OStream &Out, bool compress = true); } // End llvm namespace _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits