llvm.org GIT mirror llvm / 4645cdc
WriteBytecodeToFile actually can't throw. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29397 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
2 changed file(s) with 1 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
88 LEVEL=../..
99 TOOLNAME=ModuleMaker
1010 EXAMPLE_TOOL = 1
11 REQUIRES_EH = 1
1211 USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1312
1413 include $(LEVEL)/Makefile.common
5353 BB->getInstList().push_back(new ReturnInst(Add));
5454
5555 // Output the bytecode file to stdout
56 try {
57 WriteBytecodeToFile(M, std::cout);
58 } catch (const std::string &Error) {
59 std::cerr << "Error writing file: " << Error << "\n";
60 return 1;
61 }
56 WriteBytecodeToFile(M, std::cout);
6257
6358 // Delete the module and all of its contents.
6459 delete M;