mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
adjust last patch per review feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -104,11 +104,11 @@ void MachineOperand::ChangeToImmediate(int64_t ImmVal) {
|
||||
/// the specified value. If an operand is known to be an register already,
|
||||
/// the setReg method should be used.
|
||||
void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp,
|
||||
bool isKill, bool isDead,
|
||||
bool isEarlyClobber) {
|
||||
bool isKill, bool isDead) {
|
||||
// If this operand is already a register operand, use setReg to update the
|
||||
// register's use/def lists.
|
||||
if (isRegister()) {
|
||||
assert(!isEarlyClobber());
|
||||
setReg(Reg);
|
||||
} else {
|
||||
// Otherwise, change this to a register and set the reg#.
|
||||
@@ -127,7 +127,7 @@ void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp,
|
||||
IsImp = isImp;
|
||||
IsKill = isKill;
|
||||
IsDead = isDead;
|
||||
IsEarlyClobber = isEarlyClobber;
|
||||
IsEarlyClobber = false;
|
||||
SubReg = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user