comparison examples/ModuleMaker/ModuleMaker.cpp @ 134:3a76565eade5 LLVM5.0.1

update 5.0.1
author mir3636
date Sat, 17 Feb 2018 09:57:20 +0900
parents 1172e4bd9c6f
children c2174574ed3a
comparison
equal deleted inserted replaced
133:c60214abe0e8 134:3a76565eade5
60 60
61 // Create the return instruction and add it to the basic block 61 // Create the return instruction and add it to the basic block
62 BB->getInstList().push_back(ReturnInst::Create(Context, Add)); 62 BB->getInstList().push_back(ReturnInst::Create(Context, Add));
63 63
64 // Output the bitcode file to stdout 64 // Output the bitcode file to stdout
65 WriteBitcodeToFile(M, outs()); 65 WriteBitcodeToFile(*M, outs());
66 66
67 // Delete the module and all of its contents. 67 // Delete the module and all of its contents.
68 delete M; 68 delete M;
69 return 0; 69 return 0;
70 } 70 }