aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/JIT.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
commite2947531280503a4e73e8d94a6161f68bea857a7 (patch)
tree4d3327ef434cd56b62be4cdfc3973a566b6a45e2 /lib/ExecutionEngine/JIT/JIT.cpp
parent2834a4dd1d947461f53df000e2fba65cf99ba63c (diff)
Fix for bug 391.
Improve exeception handling around bcreader invocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r--lib/ExecutionEngine/JIT/JIT.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp
index 5340a19e3e..02577df3c4 100644
--- a/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/lib/ExecutionEngine/JIT/JIT.cpp
@@ -117,6 +117,9 @@ void *JIT::getPointerToFunction(Function *F) {
// Make sure we read in the function if it exists in this Module
try {
MP->materializeFunction(F);
+ } catch ( std::string& errmsg ) {
+ std::cerr << "Error parsing bytecode file: " << errmsg << "\n";
+ abort();
} catch (...) {
std::cerr << "Error parsing bytecode file!\n";
abort();