diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-28 22:08:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-28 22:08:23 +0000 |
commit | 5dbafa8aadd35421945bb0c8e0be78fdbdcba128 (patch) | |
tree | 78efd805710b5e7dbacaa3277d0f2c6b64d97257 /llvm/examples/ModuleMaker/ModuleMaker.cpp | |
parent | 5d836f3f4934f0c3462a45a46d2d1feb9531f9c7 (diff) | |
download | bcm5719-llvm-5dbafa8aadd35421945bb0c8e0be78fdbdcba128.tar.gz bcm5719-llvm-5dbafa8aadd35421945bb0c8e0be78fdbdcba128.zip |
WriteBytecodeToFile actually can't throw.
llvm-svn: 29397
Diffstat (limited to 'llvm/examples/ModuleMaker/ModuleMaker.cpp')
-rw-r--r-- | llvm/examples/ModuleMaker/ModuleMaker.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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; |