mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user