mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Don't accept globals as matching 'i' constraint
in PIC modes (in accordance with existing comment). gcc.apple/asm-block-25.c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8845f6aca3
commit
76a1e2e250
@ -8803,10 +8803,15 @@ void X86TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Otherwise, this isn't something we can handle, reject it.
|
||||
return;
|
||||
}
|
||||
// If we require an extra load to get this address, as in PIC mode, we
|
||||
// can't accept it.
|
||||
if (Subtarget->GVRequiresExtraLoad(GA->getGlobal(),
|
||||
getTargetMachine(), false))
|
||||
return;
|
||||
|
||||
if (hasMemory)
|
||||
Op = LowerGlobalAddress(GA->getGlobal(), Op.getDebugLoc(), Offset, DAG);
|
||||
|
Loading…
x
Reference in New Issue
Block a user