mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Accept registers with P modifier. PR 5314.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108545 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
43906f920a
commit
323200d905
@ -218,6 +218,10 @@ void X86AsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo,
|
||||
const MachineOperand &MO = MI->getOperand(OpNo);
|
||||
switch (MO.getType()) {
|
||||
default: llvm_unreachable("Unknown pcrel immediate operand");
|
||||
case MachineOperand::MO_Register:
|
||||
// pc-relativeness was handled when computing the value in the reg.
|
||||
printOperand(MI, OpNo, O);
|
||||
return;
|
||||
case MachineOperand::MO_Immediate:
|
||||
O << MO.getImm();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user