mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 11:41:15 +00:00
switch this to bitcode instead of bytecode
llvm-svn: 36867
This commit is contained in:
1 parent
15273e4d91
commit
41528e6e42
5 files changed
+17
-33
No files matched your search
@@ -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