diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-01-20 13:58:16 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-01-20 13:58:16 +0000 |
commit | 49964d6847291900992b7fc75cb88a395f468817 (patch) | |
tree | 6e1d1099b7cd123dd16d3605d8546111d8fcd4ad /lib/Target/X86/X86Subtarget.cpp | |
parent | 02ec6e51edf361e1030b71494a71de0a7a9931e7 (diff) |
Enable PIC codegen on x86-64/linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 6efe540fab..1480332ef0 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -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())); |