diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-01 00:32:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-01 00:32:35 +0000 |
commit | da79bd2322b63c2568e760ce5d3842bade9b3ecf (patch) | |
tree | 2e31bae68519e83b6307c51371de9f58fa064469 /lib/ExecutionEngine/JIT/JIT.cpp | |
parent | 52220f61bba91ab787d4cc0aee47df4e2ca55c04 (diff) |
Print an error message if there is an error materialize the bc file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index 6a067fd054..4426c67ef8 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -110,7 +110,12 @@ void *JIT::getPointerToFunction(Function *F) { return Addr; // Check if function already code gen'd // Make sure we read in the function if it exists in this Module - MP->materializeFunction(F); + try { + MP->materializeFunction(F); + } catch (...) { + std::cerr << "Error parsing bytecode file!\n"; + abort(); + } if (F->isExternal()) { void *Addr = getPointerToNamedFunction(F->getName()); |