From 4bcca0f2ac85c918fc8617e34b7642e5e5233460 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 6 May 2007 09:29:13 +0000 Subject: switch this to bitcode instead of bytecode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36867 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/ModuleMaker/ModuleMaker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/ModuleMaker/ModuleMaker.cpp') diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp index 4983597952..ec7398c97f 100644 --- a/examples/ModuleMaker/ModuleMaker.cpp +++ b/examples/ModuleMaker/ModuleMaker.cpp @@ -17,8 +17,8 @@ #include "llvm/DerivedTypes.h" #include "llvm/Constants.h" #include "llvm/Instructions.h" -#include "llvm/Bytecode/Writer.h" -#include "llvm/Support/Streams.h" +#include "llvm/Bitcode/ReaderWriter.h" +#include using namespace llvm; int main() { @@ -53,7 +53,7 @@ int main() { BB->getInstList().push_back(new ReturnInst(Add)); // Output the bytecode file to stdout - WriteBytecodeToFile(M, cout); + WriteBitcodeToFile(M, std::cout); // Delete the module and all of its contents. delete M; -- cgit v1.2.3-18-g5258