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 | 8225d83e7ba866cbbb9b1045f390ab46e561c839 (patch) | |
tree | 204b82460e97928f88886083e5a467ddfaacecc6 /llvm/lib/ExecutionEngine/JIT | |
parent | 662bb3f495a4e1bce8d1c974cf3651a9a12b4416 (diff) | |
download | bcm5719-llvm-8225d83e7ba866cbbb9b1045f390ab46e561c839.tar.gz bcm5719-llvm-8225d83e7ba866cbbb9b1045f390ab46e561c839.zip |
Print an error message if there is an error materialize the bc file.
llvm-svn: 11041
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 6a067fd0542..4426c67ef8f 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/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()); |