switch this to bitcode instead of bytecode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2007-05-06 09:29:13 +00:00
parent c1d5624d71
commit 4bcca0f2ac
5 changed files with 17 additions and 33 deletions

View File

@ -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 <iostream>
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;