mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 12:16:59 +00:00
Enable PIC codegen on x86-64/linux
llvm-svn: 46198
This commit is contained in:
parent
85db5b21a7
commit
5ac8a5b72c
@ -41,7 +41,7 @@ bool X86Subtarget::GVRequiresExtraLoad(const GlobalValue* GV,
|
||||
return (!isDirectCall &&
|
||||
(GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() ||
|
||||
(GV->isDeclaration() && !GV->hasNotBeenReadFromBitcode())));
|
||||
} else if (TM.getRelocationModel() == Reloc::PIC_ && isPICStyleGOT()) {
|
||||
} else if (isTargetELF()) {
|
||||
// Extra load is needed for all non-statics.
|
||||
return (!isDirectCall &&
|
||||
(GV->isDeclaration() || !GV->hasInternalLinkage()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user