mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
Print an error message if there is an error materialize the bc file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11041 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -110,7 +110,12 @@ void *JIT::getPointerToFunction(Function *F) {
|
|||||||
return Addr; // Check if function already code gen'd
|
return Addr; // Check if function already code gen'd
|
||||||
|
|
||||||
// Make sure we read in the function if it exists in this Module
|
// Make sure we read in the function if it exists in this Module
|
||||||
|
try {
|
||||||
MP->materializeFunction(F);
|
MP->materializeFunction(F);
|
||||||
|
} catch (...) {
|
||||||
|
std::cerr << "Error parsing bytecode file!\n";
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
if (F->isExternal()) {
|
if (F->isExternal()) {
|
||||||
void *Addr = getPointerToNamedFunction(F->getName());
|
void *Addr = getPointerToNamedFunction(F->getName());
|
||||||
|
|||||||
Reference in New Issue
Block a user