1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Print an error message if we can't materialize the bytecode file

llvm-svn: 11043
This commit is contained in:
Chris Lattner 2004-02-01 01:07:25 +00:00
parent fd937e9d01
commit becd58c6cb

View File

@ -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;