From 5dbafa8aadd35421945bb0c8e0be78fdbdcba128 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Jul 2006 22:08:23 +0000 Subject: [PATCH] WriteBytecodeToFile actually can't throw. llvm-svn: 29397 --- llvm/examples/ModuleMaker/Makefile | 1 - llvm/examples/ModuleMaker/ModuleMaker.cpp | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/llvm/examples/ModuleMaker/Makefile b/llvm/examples/ModuleMaker/Makefile index a6899ef05ae..e24e0df49d7 100644 --- a/llvm/examples/ModuleMaker/Makefile +++ b/llvm/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/llvm/examples/ModuleMaker/ModuleMaker.cpp b/llvm/examples/ModuleMaker/ModuleMaker.cpp index 4c09db4df75..04c6a9f95bf 100644 --- a/llvm/examples/ModuleMaker/ModuleMaker.cpp +++ b/llvm/examples/ModuleMaker/ModuleMaker.cpp @@ -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;