mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Fail less mysteriously; inform the user that their LLVM was not built with
libffi support and that the interpreter can't call external functions without it. Patch by Timo Juhani Lindfors! Fixes PR5466. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff1b61f2d3
commit
0e49fe8140
@ -284,6 +284,9 @@ GenericValue Interpreter::callExternalFunction(Function *F,
|
||||
else
|
||||
llvm_report_error("Tried to execute an unknown external function: " +
|
||||
F->getType()->getDescription() + " " +F->getName());
|
||||
#ifndef USE_LIBFFI
|
||||
errs() << "Recompiling LLVM with --enable-libffi might help.\n";
|
||||
#endif
|
||||
return GenericValue();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user