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:
369b123
)
Print an error message if we can't materialize the bytecode file
author
Chris Lattner
<sabre@nondot.org>
Sun, 1 Feb 2004 01:07:25 +0000
(
01:07
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 1 Feb 2004 01:07:25 +0000
(
01:07
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11043
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/ExecutionEngine.cpp
b/lib/ExecutionEngine/ExecutionEngine.cpp
index 76ba2284306414437452b62e3c93395a4a09b112..5892d169e78827701b5a14fc0e8417180283eb10 100644
(file)
--- a/
lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/
lib/ExecutionEngine/ExecutionEngine.cpp
@@
-130,11
+130,17
@@
ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP,
EE = JIT::create(MP, IL);
// If we can't make a JIT, make an interpreter instead.
- try {
- if (EE == 0)
- EE = Interpreter::create(MP->materializeModule(), IL);
- } catch (...) {
- EE = 0;
+ if (EE == 0) {
+ try {
+ Module *M = MP->materializeModule();
+ try {
+ EE = Interpreter::create(M, IL);
+ } catch (...) {
+ std::cerr << "Error creating the interpreter!\n";
+ }
+ } catch (...) {
+ std::cerr << "Error reading the bytecode file!\n";
+ }
}
if (EE == 0) delete IL;