summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-07 21:01:38 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-07 21:01:38 +0000
commit6967cd54f3d44a8bf4a2dd9a066da07e0da7abea (patch)
tree6ceaee15efff1a7b6d7b3acfd2945e73bb364e8a /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent3955f9079b097fa00684b1f45f73ffd04cf63507 (diff)
downloadbcm5719-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.cpp2
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";
}
OpenPOWER on IntegriCloud