aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ModuleMaker
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-29 00:19:40 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-29 00:19:40 +0000
commit68fe61d6a165ea6090008e281330895a21607daf (patch)
tree2e0cc1cbd16099aed908dbb3ecda16cf57d04300 /examples/ModuleMaker
parenta5b31ca85686062408bca0f0a8aa43f9fe58e644 (diff)
downloadexternal_llvm-68fe61d6a165ea6090008e281330895a21607daf.zip
external_llvm-68fe61d6a165ea6090008e281330895a21607daf.tar.gz
external_llvm-68fe61d6a165ea6090008e281330895a21607daf.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/ModuleMaker')
-rw-r--r--examples/ModuleMaker/ModuleMaker.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp
index 2ec5437..30f63bb 100644
--- a/examples/ModuleMaker/ModuleMaker.cpp
+++ b/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;