[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h
Changes in directory llvm/include/llvm/Bytecode: WriteBytecodePass.h (r1.23) removed --- Log message: remove bytecode headers --- Diffs of the changes: (+0 -0) 0 files changed ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h
Changes in directory llvm/include/llvm/Bytecode: WriteBytecodePass.h updated: 1.22 -> 1.23 --- Log message: Fix typo in comment. --- Diffs of the changes: (+1 -1) WriteBytecodePass.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.22 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.23 --- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.22 Wed May 2 20:11:53 2007 +++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Sun May 6 08:37:16 2007 @@ -26,7 +26,7 @@ bool DeleteStream; bool CompressFile; public: - static char ID; // Pass identifcation, replacement for typeid + static char ID; // Pass identification, replacement for typeid WriteBytecodePass() : ModulePass((intptr_t) &ID), Out(&cout), DeleteStream(false), CompressFile(false) {} ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h
Changes in directory llvm/include/llvm/Bytecode: WriteBytecodePass.h updated: 1.21 -> 1.22 --- Log message: Drop 'const' --- Diffs of the changes: (+1 -1) WriteBytecodePass.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.21 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.22 --- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.21 Wed May 2 16:39:18 2007 +++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Wed May 2 20:11:53 2007 @@ -26,7 +26,7 @@ bool DeleteStream; bool CompressFile; public: - static const char ID; // Pass identifcation, replacement for typeid + static char ID; // Pass identifcation, replacement for typeid WriteBytecodePass() : ModulePass((intptr_t) &ID), Out(&cout), DeleteStream(false), CompressFile(false) {} ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h
Changes in directory llvm/include/llvm/Bytecode: WriteBytecodePass.h updated: 1.20 -> 1.21 --- Log message: Use 'static const char' instead of 'static const int'. Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. --- Diffs of the changes: (+1 -1) WriteBytecodePass.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.20 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.21 --- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.20 Tue May 1 16:15:46 2007 +++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Wed May 2 16:39:18 2007 @@ -26,7 +26,7 @@ bool DeleteStream; bool CompressFile; public: - static const int ID; // Pass identifcation, replacement for typeid + static const char ID; // Pass identifcation, replacement for typeid WriteBytecodePass() : ModulePass((intptr_t) &ID), Out(&cout), DeleteStream(false), CompressFile(false) {} ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h
Changes in directory llvm/include/llvm/Bytecode: WriteBytecodePass.h updated: 1.19 -> 1.20 --- Log message: Do not use typeinfo to identify pass in pass manager. --- Diffs of the changes: (+4 -2) WriteBytecodePass.h |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.19 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.20 --- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.19 Sun Jan 21 00:31:34 2007 +++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Tue May 1 16:15:46 2007 @@ -26,10 +26,12 @@ bool DeleteStream; bool CompressFile; public: + static const int ID; // Pass identifcation, replacement for typeid WriteBytecodePass() -: Out(&cout), DeleteStream(false), CompressFile(false) {} +: ModulePass((intptr_t) &ID), Out(&cout), DeleteStream(false), + CompressFile(false) {} WriteBytecodePass(OStream *o, bool DS = false, bool CF = false) -: Out(o), DeleteStream(DS), CompressFile(CF) {} +: ModulePass((intptr_t) &ID), Out(o), DeleteStream(DS), CompressFile(CF) {} inline ~WriteBytecodePass() { if (DeleteStream) delete Out; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h
Changes in directory llvm/include/llvm/Bytecode: WriteBytecodePass.h updated: 1.18 -> 1.19 --- Log message: default to emiting an uncompressed .bc file --- Diffs of the changes: (+2 -2) WriteBytecodePass.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.18 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.19 --- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.18 Wed Dec 6 19:30:30 2006 +++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Sun Jan 21 00:31:34 2007 @@ -27,8 +27,8 @@ bool CompressFile; public: WriteBytecodePass() -: Out(&cout), DeleteStream(false), CompressFile(true) {} - WriteBytecodePass(OStream *o, bool DS = false, bool CF = true) +: Out(&cout), DeleteStream(false), CompressFile(false) {} + WriteBytecodePass(OStream *o, bool DS = false, bool CF = false) : Out(o), DeleteStream(DS), CompressFile(CF) {} inline ~WriteBytecodePass() { ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h Writer.h
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.12Tue 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
[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h Writer.h
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 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.11Fri 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 - 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 ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h
Changes in directory llvm/include/llvm/Bytecode: WriteBytecodePass.h updated: 1.15 -> 1.16 --- Log message: remove extraneous space --- Diffs of the changes: (+1 -1) WriteBytecodePass.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.15 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.16 --- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.15 Thu Apr 21 15:34:13 2005 +++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Mon Aug 28 12:30:49 2006 @@ -36,7 +36,7 @@ } bool runOnModule(Module &M) { -WriteBytecodeToFile(&M, *Out, CompressFile ); +WriteBytecodeToFile(&M, *Out, CompressFile); return false; } }; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits