summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-05 16:58:46 +0000
committerChris Lattner <sabre@nondot.org>2003-08-05 16:58:46 +0000
commita2dd745613fdb9deff6037285f4efc20248c7b3d (patch)
treef13cab73755452d80e81f4f02e6f0a01d727c1b2 /include
parent3d9c001af0e3e14559127dd51eedf9f6bff0bffe (diff)
downloadllvm-a2dd745613fdb9deff6037285f4efc20248c7b3d.tar.gz
llvm-a2dd745613fdb9deff6037285f4efc20248c7b3d.tar.bz2
llvm-a2dd745613fdb9deff6037285f4efc20248c7b3d.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 117e4adb50..47f244b148 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -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,