summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-11-17 07:52:09 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-11-17 07:52:09 +0000
commit7efd07fd9dab3596de45f32b5423a575b23fb20f (patch)
tree247ec797d85ba00f3aa34bd65caa3d98f432e8d7 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parentf0f1cf087e704ed2c8592669399a837f7c5308b1 (diff)
downloadbcm5719-llvm-7efd07fd9dab3596de45f32b5423a575b23fb20f.tar.gz
bcm5719-llvm-7efd07fd9dab3596de45f32b5423a575b23fb20f.zip
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
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index a620de59cfd..8b4e9613ad7 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -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();
}
OpenPOWER on IntegriCloud