mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Handle registers a bit more efficiently
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15395 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
068758e518
commit
25369cfa2b
@ -106,7 +106,13 @@ namespace {
|
|||||||
|
|
||||||
// This method is used by the tablegen'erated instruction printer.
|
// This method is used by the tablegen'erated instruction printer.
|
||||||
void printOperand(const MachineOperand &MO, MVT::ValueType VT) {
|
void printOperand(const MachineOperand &MO, MVT::ValueType VT) {
|
||||||
printOp(MO);
|
if (MO.getType() == MachineOperand::MO_MachineRegister) {
|
||||||
|
assert(MRegisterInfo::isPhysicalRegister(MO.getReg())&&"Not physref??");
|
||||||
|
// Bug Workaround: See note in Printer::doInitialization about %.
|
||||||
|
O << "%" << TM.getRegisterInfo()->get(MO.getReg()).Name;
|
||||||
|
} else {
|
||||||
|
printOp(MO);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void printImplUsesBefore(const TargetInstrDescriptor &Desc);
|
void printImplUsesBefore(const TargetInstrDescriptor &Desc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user