[llvm-commits] CVS: llvm/examples/ModuleMaker/ModuleMaker.cpp
Bill Wendling
isanbard at gmail.com
Tue Nov 28 16:20:28 PST 2006
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;
More information about the llvm-commits
mailing list