aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ModuleMaker/ModuleMaker.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-28 22:08:23 +0000
committerChris Lattner <sabre@nondot.org>2006-07-28 22:08:23 +0000
commit4645cdca8af4d60623205a642b3e727e91f5570a (patch)
tree6632fc62d2bef2906a30370945d29a934d06a313 /examples/ModuleMaker/ModuleMaker.cpp
parentc847f7caecd6bf219b219ca45e52fd1f15277805 (diff)
downloadexternal_llvm-4645cdca8af4d60623205a642b3e727e91f5570a.zip
external_llvm-4645cdca8af4d60623205a642b3e727e91f5570a.tar.gz
external_llvm-4645cdca8af4d60623205a642b3e727e91f5570a.tar.bz2
WriteBytecodeToFile actually can't throw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/ModuleMaker/ModuleMaker.cpp')
-rw-r--r--examples/ModuleMaker/ModuleMaker.cpp7
1 files changed, 1 insertions, 6 deletions
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 @@ 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;