llvm.org GIT mirror llvm / b461131
Catch a potentially thrown exception. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28295 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5353 BB->getInstList().push_back(new ReturnInst(Add));
5454
5555 // Output the bytecode file to stdout
56 WriteBytecodeToFile(M, std::cout);
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 }
5762
5863 // Delete the module and all of its contents.
5964 delete M;