Replacing std::iostreams with llvm iostreams. Some of these changes involve
[oota-llvm.git] / examples / ModuleMaker / ModuleMaker.cpp
index 2ec5437c36be373d58b03778d28e30d4a83f9545..30f63bb8f4496698b13746fd6219e6fe20882460 100644 (file)
@@ -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;