Remove Darwin'ism

llvm-svn: 46199
This commit is contained in:
Anton Korobeynikov 2008-01-20 13:59:37 +00:00
parent 28d4302807
commit c7ffe0f4db
1 changed files with 1 additions and 4 deletions

View File

@ -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) {