[llvm-commits] [llvm] r85077 - /llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
Chris Lattner
sabre at nondot.org
Sun Oct 25 16:06:42 PDT 2009
Author: lattner
Date: Sun Oct 25 18:06:42 2009
New Revision: 85077
URL: http://llvm.org/viewvc/llvm-project?rev=85077&view=rev
Log:
fix PR5186: the JIT shouldn't try to codegen available_externally
functions it should just look them up like declarations.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp?rev=85077&r1=85076&r2=85077&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp Sun Oct 25 18:06:42 2009
@@ -659,7 +659,7 @@
return Addr;
}
- if (F->isDeclaration()) {
+ if (F->isDeclaration() || F->hasAvailableExternallyLinkage()) {
bool AbortOnFailure =
!areDlsymStubsEnabled() && !F->hasExternalWeakLinkage();
void *Addr = getPointerToNamedFunction(F->getName(), AbortOnFailure);
More information about the llvm-commits
mailing list