forked from OSchip/llvm-project
Remove two arguments that are never specified
llvm-svn: 4348
This commit is contained in:
parent
780090bbf1
commit
864d279667
|
@ -54,7 +54,6 @@ typedef int OpCodeMask;
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
class MachineOperand {
|
||||
public:
|
||||
enum MachineOperandType {
|
||||
|
@ -326,8 +325,7 @@ public:
|
|||
void SetMachineOperandConst(unsigned i,
|
||||
MachineOperand::MachineOperandType operandType,
|
||||
int64_t intValue);
|
||||
void SetMachineOperandReg(unsigned i, int regNum, bool isDef=false,
|
||||
bool isDefAndUse=false, bool isCCReg=false);
|
||||
void SetMachineOperandReg(unsigned i, int regNum, bool isDef=false);
|
||||
|
||||
unsigned substituteValue(const Value* oldVal, Value* newVal,
|
||||
bool defsOnly = true);
|
||||
|
|
|
@ -82,22 +82,16 @@ MachineInstr::SetMachineOperandConst(unsigned i,
|
|||
void
|
||||
MachineInstr::SetMachineOperandReg(unsigned i,
|
||||
int regNum,
|
||||
bool isdef,
|
||||
bool isDefAndUse,
|
||||
bool isCCReg)
|
||||
{
|
||||
bool isdef) {
|
||||
assert(i < operands.size());
|
||||
|
||||
operands[i].opType =
|
||||
isCCReg? MachineOperand::MO_CCRegister : MachineOperand::MO_MachineRegister;
|
||||
operands[i].opType = MachineOperand::MO_MachineRegister;
|
||||
operands[i].value = NULL;
|
||||
operands[i].regNum = regNum;
|
||||
operands[i].flags = 0;
|
||||
|
||||
if (isdef || TargetInstrDescriptors[opCode].resultPos == (int) i)
|
||||
operands[i].markDef();
|
||||
if (isDefAndUse)
|
||||
operands[i].markDefAndUse();
|
||||
insertUsedReg(regNum);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue