diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-29 00:19:40 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-29 00:19:40 +0000 |
commit | afd54eb8b63025955fca8c184ab78f7ed75414f7 (patch) | |
tree | 9eaaabde78fe455487783cdf40a0bebcb0352b6c /llvm/examples/ModuleMaker/ModuleMaker.cpp | |
parent | a531ac291cc4fb65f4d9573d08babf5ce8bd4a9d (diff) | |
download | bcm5719-llvm-afd54eb8b63025955fca8c184ab78f7ed75414f7.tar.gz bcm5719-llvm-afd54eb8b63025955fca8c184ab78f7ed75414f7.zip |
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.
llvm-svn: 31990
Diffstat (limited to 'llvm/examples/ModuleMaker/ModuleMaker.cpp')
-rw-r--r-- | llvm/examples/ModuleMaker/ModuleMaker.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/examples/ModuleMaker/ModuleMaker.cpp b/llvm/examples/ModuleMaker/ModuleMaker.cpp index 2ec5437c36b..30f63bb8f44 100644 --- a/llvm/examples/ModuleMaker/ModuleMaker.cpp +++ b/llvm/examples/ModuleMaker/ModuleMaker.cpp @@ -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 @@ int main() { 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; |