aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit928d16d438165dc6459fdde2365d36e64642ed1e (patch)
tree12725a5523466f8e95a8bfc50fecf63ce02fe277 /lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parentd06c8c5777c8bda4fac5bebc55324fe5fd7bc6dd (diff)
downloadexternal_llvm-928d16d438165dc6459fdde2365d36e64642ed1e.tar.gz
external_llvm-928d16d438165dc6459fdde2365d36e64642ed1e.tar.bz2
external_llvm-928d16d438165dc6459fdde2365d36e64642ed1e.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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index a620de59cf..8b4e9613ad 100644
--- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/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();
}