mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
fix PR5186: the JIT shouldn't try to codegen available_externally
functions it should just look them up like declarations. llvm-svn: 85077
This commit is contained in:
parent
6e9cf74969
commit
2f00168ed8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user