mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
All callers of these methods actually wanted them to preserve the flags,
so get rid of the def/use parameters that were getting passed in. **** This now changes the semantics of these methods to preserve the flags, not clobber them! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -432,12 +432,10 @@ public:
|
||||
++numImplicitRefs;
|
||||
addRegOperand(V, isDef, isDefAndUse);
|
||||
}
|
||||
void setImplicitRef(unsigned i, Value* V, bool isDef=false,
|
||||
bool isDefAndUse=false) {
|
||||
void setImplicitRef(unsigned i, Value* V) {
|
||||
assert(i < getNumImplicitRefs() && "setImplicitRef() out of range!");
|
||||
SetMachineOperandVal(i + getNumOperands(),
|
||||
MachineOperand::MO_VirtualRegister,
|
||||
V, isDef, isDefAndUse);
|
||||
MachineOperand::MO_VirtualRegister, V);
|
||||
}
|
||||
|
||||
//
|
||||
@ -631,17 +629,13 @@ public:
|
||||
//
|
||||
void SetMachineOperandVal (unsigned i,
|
||||
MachineOperand::MachineOperandType operandType,
|
||||
Value* V,
|
||||
bool isDef=false,
|
||||
bool isDefAndUse=false);
|
||||
Value* V);
|
||||
|
||||
void SetMachineOperandConst (unsigned i,
|
||||
MachineOperand::MachineOperandType operandType,
|
||||
int64_t intValue);
|
||||
|
||||
void SetMachineOperandReg (unsigned i,
|
||||
int regNum,
|
||||
bool isDef=false);
|
||||
void SetMachineOperandReg(unsigned i, int regNum);
|
||||
|
||||
|
||||
unsigned substituteValue(const Value* oldVal, Value* newVal,
|
||||
|
Reference in New Issue
Block a user