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/JIT | |
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/JIT')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 5340a19e3ed..02577df3c42 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/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(); |