[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h Writer.h
Bill Wendling
isanbard at gmail.com
Tue Nov 28 16:20:29 PST 2006
Changes in directory llvm/include/llvm/Bytecode:
WriteBytecodePass.h updated: 1.16 -> 1.17
Writer.h updated: 1.11 -> 1.12
---
Log message:
Replacing std::iostreams with llvm iostreams. Some of these changes involve
adding a temporary wrapper around the ostream to make it friendly to
functions expecting an LLVM stream. This should be fixed in the future.
---
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.16 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.17
--- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.16 Mon Aug 28 12:30:49 2006
+++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Tue Nov 28 18:19:40 2006
@@ -17,18 +17,19 @@
#include "llvm/Pass.h"
#include "llvm/Bytecode/Writer.h"
-#include <iostream>
namespace llvm {
+class llvm_ostream;
+
class WriteBytecodePass : public ModulePass {
- std::ostream *Out; // ostream to print on
+ llvm_ostream *Out; // ostream to print on
bool DeleteStream;
bool CompressFile;
public:
WriteBytecodePass()
- : Out(&std::cout), DeleteStream(false), CompressFile(true) {}
- WriteBytecodePass(std::ostream *o, bool DS = false, bool CF = true)
+ : Out(&llvm_cout), DeleteStream(false), CompressFile(true) {}
+ WriteBytecodePass(llvm_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.11 llvm/include/llvm/Bytecode/Writer.h:1.12
--- llvm/include/llvm/Bytecode/Writer.h:1.11 Fri Jul 28 17:09:37 2006
+++ llvm/include/llvm/Bytecode/Writer.h Tue Nov 28 18:19:40 2006
@@ -15,14 +15,13 @@
#ifndef LLVM_BYTECODE_WRITER_H
#define LLVM_BYTECODE_WRITER_H
-#include <iosfwd>
-
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, std::ostream &Out,
+ void WriteBytecodeToFile(const Module *M, llvm_ostream &Out,
bool compress = true);
} // End llvm namespace
More information about the llvm-commits
mailing list