summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-25 23:06:42 +0000
committerChris Lattner <sabre@nondot.org>2009-10-25 23:06:42 +0000
commitf4c2a9f02a923314cda7a8aea57bdd9cdb260e68 (patch)
treebe937d481f2d8b3597c2b1ffa6c149c3957216cf /llvm/lib
parentc0c043903b6e87ac8595ffeab1b71fb62f0174f6 (diff)
downloadbcm5719-llvm-f4c2a9f02a923314cda7a8aea57bdd9cdb260e68.tar.gz
bcm5719-llvm-f4c2a9f02a923314cda7a8aea57bdd9cdb260e68.zip
fix PR5186: the JIT shouldn't try to codegen available_externally
functions it should just look them up like declarations. llvm-svn: 85077
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index b2a268bce8b..cb825904cc2 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -659,7 +659,7 @@ void *JIT::getPointerToFunction(Function *F) {
return Addr;
}
- if (F->isDeclaration()) {
+ if (F->isDeclaration() || F->hasAvailableExternallyLinkage()) {
bool AbortOnFailure =
!areDlsymStubsEnabled() && !F->hasExternalWeakLinkage();
void *Addr = getPointerToNamedFunction(F->getName(), AbortOnFailure);
OpenPOWER on IntegriCloud