Remove two arguments that are never specified
authorChris Lattner <sabre@nondot.org>
Mon, 28 Oct 2002 19:46:59 +0000 (19:46 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Oct 2002 19:46:59 +0000 (19:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4348 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp

index 8d987acd64daf4ea1b0422c449d7a5105377436b..04f07abce6002ba956390840a2ad3f22ecdb816d 100644 (file)
@@ -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);
index 367774ac8ac5ee25c739be13a1bcc6846c7cebb7..c3c5ca8feadd787fba05ded25f5f998a7aee25f3 100644 (file)
@@ -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);
 }