From 4645cdca8af4d60623205a642b3e727e91f5570a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Jul 2006 22:08:23 +0000 Subject: WriteBytecodeToFile actually can't throw. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29397 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/ModuleMaker/ModuleMaker.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'examples/ModuleMaker/ModuleMaker.cpp') diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp index 4c09db4df7..04c6a9f95b 100644 --- a/examples/ModuleMaker/ModuleMaker.cpp +++ b/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; -- cgit v1.2.3-18-g5258