aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-28 19:46:59 +0000
committerChris Lattner <sabre@nondot.org>2002-10-28 19:46:59 +0000
commit2f305989b395a0a8bf00c4b9dc140a6df051245e (patch)
treef449ca258ba41649254889a7ef3dd1e7d33f7e08
parent5638bf973f92a6653566cf4195ffe30f490fb7a8 (diff)
Remove two arguments that are never specified
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4348 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineInstr.h4
-rw-r--r--lib/CodeGen/MachineInstr.cpp10
2 files changed, 3 insertions, 11 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 8d987acd64..04f07abce6 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -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);
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 367774ac8a..c3c5ca8fea 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -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);
}