mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
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:
@@ -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";
|
||||
|
Reference in New Issue
Block a user