[llvm-commits] [llvm] r89062 - /llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
Nick Lewycky
nicholas at mxc.ca
Mon Nov 16 23:52:10 PST 2009
Author: nicholas
Date: Tue Nov 17 01:52:09 2009
New Revision: 89062
URL: http://llvm.org/viewvc/llvm-project?rev=89062&view=rev
Log:
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.
Modified:
llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp?rev=89062&r1=89061&r2=89062&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Tue Nov 17 01:52:09 2009
@@ -284,6 +284,9 @@
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();
}
More information about the llvm-commits
mailing list