projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52220f6
)
Print an error message if there is an error materialize the bc file.
author
Chris Lattner
<sabre@nondot.org>
Sun, 1 Feb 2004 00:32:35 +0000
(
00:32
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 1 Feb 2004 00:32:35 +0000
(
00:32
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11041
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/JIT/JIT.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/JIT/JIT.cpp
b/lib/ExecutionEngine/JIT/JIT.cpp
index 6a067fd0542e9e5acb2dc1359a447861db8bfb71..4426c67ef8fb7f2c1d0a372a6596e7fe322e430b 100644
(file)
--- 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());