[llvm-commits] CVS: llvm/examples/ModuleMaker/ModuleMaker.cpp
Changes in directory llvm/examples/ModuleMaker: ModuleMaker.cpp updated: 1.10 - 1.11 --- 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: (+1 -1) ModuleMaker.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/examples/ModuleMaker/ModuleMaker.cpp diff -u llvm/examples/ModuleMaker/ModuleMaker.cpp:1.10 llvm/examples/ModuleMaker/ModuleMaker.cpp:1.11 --- llvm/examples/ModuleMaker/ModuleMaker.cpp:1.10 Tue Nov 28 18:19:40 2006 +++ llvm/examples/ModuleMaker/ModuleMaker.cpp Wed Dec 6 19:30:30 2006 @@ -53,7 +53,7 @@ BB-getInstList().push_back(new ReturnInst(Add)); // Output the bytecode file to stdout - WriteBytecodeToFile(M, llvm_cout); + WriteBytecodeToFile(M, cout); // Delete the module and all of its contents. delete M; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/examples/ModuleMaker/ModuleMaker.cpp
Changes in directory llvm/examples/ModuleMaker: ModuleMaker.cpp updated: 1.9 - 1.10 --- 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: (+2 -3) ModuleMaker.cpp |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Index: llvm/examples/ModuleMaker/ModuleMaker.cpp diff -u llvm/examples/ModuleMaker/ModuleMaker.cpp:1.9 llvm/examples/ModuleMaker/ModuleMaker.cpp:1.10 --- llvm/examples/ModuleMaker/ModuleMaker.cpp:1.9 Fri Oct 20 02:07:23 2006 +++ llvm/examples/ModuleMaker/ModuleMaker.cpp Tue Nov 28 18:19:40 2006 @@ -18,8 +18,7 @@ #include llvm/Constants.h #include llvm/Instructions.h #include llvm/Bytecode/Writer.h -#include iostream - +#include llvm/Support/Streams.h using namespace llvm; int main() { @@ -54,7 +53,7 @@ BB-getInstList().push_back(new ReturnInst(Add)); // Output the bytecode file to stdout - WriteBytecodeToFile(M, std::cout); + WriteBytecodeToFile(M, llvm_cout); // Delete the module and all of its contents. delete M; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/examples/ModuleMaker/ModuleMaker.cpp
Changes in directory llvm/examples/ModuleMaker: ModuleMaker.cpp updated: 1.8 - 1.9 --- Log message: For PR950: http://llvm.org/PR950 : This patch implements the first increment for the Signless Types feature. All changes pertain to removing the ConstantSInt and ConstantUInt classes in favor of just using ConstantInt. --- Diffs of the changes: (+2 -2) ModuleMaker.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/examples/ModuleMaker/ModuleMaker.cpp diff -u llvm/examples/ModuleMaker/ModuleMaker.cpp:1.8 llvm/examples/ModuleMaker/ModuleMaker.cpp:1.9 --- llvm/examples/ModuleMaker/ModuleMaker.cpp:1.8 Fri Jul 28 17:08:23 2006 +++ llvm/examples/ModuleMaker/ModuleMaker.cpp Fri Oct 20 02:07:23 2006 @@ -40,8 +40,8 @@ BasicBlock *BB = new BasicBlock(EntryBlock, F); // Get pointers to the constant integers... - Value *Two = ConstantSInt::get(Type::IntTy, 2); - Value *Three = ConstantSInt::get(Type::IntTy, 3); + Value *Two = ConstantInt::get(Type::IntTy, 2); + Value *Three = ConstantInt::get(Type::IntTy, 3); // Create the add instruction... does not insert... Instruction *Add = BinaryOperator::create(Instruction::Add, Two, Three, ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits