mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-22 10:36:10 +00:00
Print an error message if we can't materialize the bytecode file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
369b123bc7
commit
338733fdd2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user