mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
rename TargetInstrDescriptor -> TargetInstrDesc.
Make MachineInstr::getDesc return a reference instead of a pointer, since it can never be null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -173,7 +173,7 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
||||
|
||||
// This is a preliminary pass that will invalidate any registers that are
|
||||
// used by the instruction (including implicit uses).
|
||||
const TargetInstrDescriptor &Desc = *MI->getDesc();
|
||||
const TargetInstrDesc &Desc = MI->getDesc();
|
||||
const unsigned *Regs;
|
||||
if (Desc.ImplicitUses) {
|
||||
for (Regs = Desc.ImplicitUses; *Regs; ++Regs)
|
||||
@ -203,7 +203,7 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
||||
unsigned physReg = Virt2PhysRegMap[virtualReg];
|
||||
if (physReg == 0) {
|
||||
if (op.isDef()) {
|
||||
int TiedOp = MI->getDesc()->findTiedToSrcOperand(i);
|
||||
int TiedOp = Desc.findTiedToSrcOperand(i);
|
||||
if (TiedOp == -1) {
|
||||
physReg = getFreeReg(virtualReg);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user