diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-07 21:01:38 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-07 21:01:38 +0000 |
commit | 6967cd54f3d44a8bf4a2dd9a066da07e0da7abea (patch) | |
tree | 6ceaee15efff1a7b6d7b3acfd2945e73bb364e8a /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 3955f9079b097fa00684b1f45f73ffd04cf63507 (diff) | |
download | bcm5719-llvm-6967cd54f3d44a8bf4a2dd9a066da07e0da7abea.tar.gz bcm5719-llvm-6967cd54f3d44a8bf4a2dd9a066da07e0da7abea.zip |
Fix for bug 391.
Improve exeception handling around bcreader invocations.
llvm-svn: 14674
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index c9fd5776546..4ece8b9c84b 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -137,6 +137,8 @@ ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP, } catch (...) { std::cerr << "Error creating the interpreter!\n"; } + } catch (std::string& errmsg) { + std::cerr << "Error reading the bytecode file: " << errmsg << "\n"; } catch (...) { std::cerr << "Error reading the bytecode file!\n"; } |