LEVEL=../..
TOOLNAME=ModuleMaker
EXAMPLE_TOOL = 1
-REQUIRES_EH = 1
USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
include $(LEVEL)/Makefile.common
BB->getInstList().push_back(new ReturnInst(Add));
// Output the bytecode file to stdout
- try {
- WriteBytecodeToFile(M, std::cout);
- } catch (const std::string &Error) {
- std::cerr << "Error writing file: " << Error << "\n";
- return 1;
- }
+ WriteBytecodeToFile(M, std::cout);
// Delete the module and all of its contents.
delete M;