Author: asl Date: Sun Jan 20 07:58:16 2008 New Revision: 46198 URL: http://llvm.org/viewvc/llvm-project?rev=46198&view=rev Log: Enable PIC codegen on x86-64/linux
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=46198&r1=46197&r2=46198&view=diff ============================================================================== --- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original) +++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Sun Jan 20 07:58:16 2008 @@ -41,7 +41,7 @@ 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())); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits