summaryrefslogtreecommitdiff
path: root/examples/ModuleMaker/ModuleMaker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ModuleMaker/ModuleMaker.cpp')
-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 2ec5437c36..30f63bb8f4 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;