mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Support printing constant pool indices.
If we see an "unknown operand", abort so it's easier to fix it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec3227fe39
commit
8a0ae9e9ca
@ -412,8 +412,11 @@ void V8Printer::printOperand(const MachineInstr *MI, int opNum) {
|
||||
case MachineOperand::MO_ExternalSymbol:
|
||||
O << MO.getSymbolName();
|
||||
break;
|
||||
case MachineOperand::MO_ConstantPoolIndex:
|
||||
O << ".CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
|
||||
break;
|
||||
default:
|
||||
O << "<unknown operand type>"; break;
|
||||
O << "<unknown operand type>"; abort (); break;
|
||||
}
|
||||
if (CloseParen) O << ")";
|
||||
}
|
||||
|
@ -412,8 +412,11 @@ void V8Printer::printOperand(const MachineInstr *MI, int opNum) {
|
||||
case MachineOperand::MO_ExternalSymbol:
|
||||
O << MO.getSymbolName();
|
||||
break;
|
||||
case MachineOperand::MO_ConstantPoolIndex:
|
||||
O << ".CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
|
||||
break;
|
||||
default:
|
||||
O << "<unknown operand type>"; break;
|
||||
O << "<unknown operand type>"; abort (); break;
|
||||
}
|
||||
if (CloseParen) O << ")";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user