projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff1b61f
)
Fail less mysteriously; inform the user that their LLVM was not built with
author
Nick Lewycky
<nicholas@mxc.ca>
Tue, 17 Nov 2009 07:52:09 +0000
(07:52 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Tue, 17 Nov 2009 07:52:09 +0000
(07:52 +0000)
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
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index a620de59cfdd6dc065ab1bb0228fbc163af5c8b8..8b4e9613ad7ae14f06d16c90a08a0b664e5ced2b 100644
(file)
--- 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();
}