From: Anton Korobeynikov Date: Sun, 20 Jan 2008 13:59:37 +0000 (+0000) Subject: Remove Darwin'ism X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=99e635ca69200009d899dce03258237ec1484dfe;p=oota-llvm.git Remove Darwin'ism git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46199 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp index 5b6450174a3..8198fbe860e 100644 --- a/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -363,10 +363,7 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo, O << "@GOTOFF"; } else if (Subtarget->isPICStyleRIPRel() && !NotRIPRel && TM.getRelocationModel() != Reloc::Static) { - if ((GV->isDeclaration() || - GV->hasWeakLinkage() || - GV->hasLinkOnceLinkage()) && - TM.getRelocationModel() != Reloc::Static) + if (Subtarget->GVRequiresExtraLoad(GV, TM, false)) O << "@GOTPCREL"; if (needCloseParen) {