WriteBytecodeToFile actually can't throw.
authorChris Lattner <sabre@nondot.org>
Fri, 28 Jul 2006 22:08:23 +0000 (22:08 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Jul 2006 22:08:23 +0000 (22:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29397 91177308-0d34-0410-b5e6-96231b3b80d8

examples/ModuleMaker/Makefile
examples/ModuleMaker/ModuleMaker.cpp

index a6899ef05aedc42560fd87892abaea1953cdd33f..e24e0df49d734a5397789b3936668d771130c376 100644 (file)
@@ -9,7 +9,6 @@
 LEVEL=../..
 TOOLNAME=ModuleMaker
 EXAMPLE_TOOL = 1
-REQUIRES_EH = 1
 USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
 
 include $(LEVEL)/Makefile.common
index 4c09db4df751f01b1c548304bc887fb4ce85576f..04c6a9f95bf7c1102580697221bf10d2a6208cd7 100644 (file)
@@ -54,12 +54,7 @@ int main() {
   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;