WriteBytecodeToFile actually can't throw.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29397 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/ModuleMaker/Makefile b/examples/ModuleMaker/Makefile
index a6899ef..e24e0df 100644
--- a/examples/ModuleMaker/Makefile
+++ b/examples/ModuleMaker/Makefile
@@ -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
diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp
index 4c09db4..04c6a9f 100644
--- a/examples/ModuleMaker/ModuleMaker.cpp
+++ b/examples/ModuleMaker/ModuleMaker.cpp
@@ -54,12 +54,7 @@
   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;