mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Simplify code, eliminating the need for the X86 isVoid target instr flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -126,10 +126,11 @@ MachineInstr::SetMachineOperandReg(unsigned i,
|
|||||||
operands[i].value = NULL;
|
operands[i].value = NULL;
|
||||||
operands[i].regNum = regNum;
|
operands[i].regNum = regNum;
|
||||||
|
|
||||||
if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i)
|
if (isdef || TargetInstrDescriptors[opCode].resultPos == (int)i) {
|
||||||
|
assert(operands[i].flags == MachineOperand::DEFONLYFLAG &&
|
||||||
|
"Shouldn't be changing a register type once set!");
|
||||||
operands[i].flags = MachineOperand::DEFONLYFLAG;
|
operands[i].flags = MachineOperand::DEFONLYFLAG;
|
||||||
else
|
}
|
||||||
operands[i].flags = 0;
|
|
||||||
|
|
||||||
insertUsedReg(regNum);
|
insertUsedReg(regNum);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user