Fix for PR1018 - Better support for X86-64 Linux in small code model.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2006-11-29 23:19:46 +00:00
parent 95e6effad2
commit d0ff02cf6f
3 changed files with 55 additions and 14 deletions

View File

@@ -262,7 +262,7 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
else if (Offset < 0)
O << Offset;
if (!isCallOp &&
if (isMemOp &&
Subtarget->is64Bit()) {
if (isExt && TM.getRelocationModel() != Reloc::Static)
O << "@GOTPCREL";