mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01: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. llvm-svn: 89062
This commit is contained in:
parent
2e0183a8a6
commit
f6d8788686
@ -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…
Reference in New Issue
Block a user