Pass IsImp, IsKill, and IsDead to ChangeToRegister.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 27 Feb 2007 21:06:57 +0000 (21:06 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 27 Feb 2007 21:06:57 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34688 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h

index ef06d97ea92c2260c6ce1ca8fd93a50fc9072863..3351aa802103dc20df72f78377fadcf85d4d6605 100644 (file)
@@ -280,13 +280,14 @@ public:
   /// ChangeToRegister - Replace this operand with a new register operand of
   /// the specified value.  If an operand is known to be an register already,
   /// the setReg method should be used.
-  void ChangeToRegister(unsigned Reg, bool isDef) {
+  void ChangeToRegister(unsigned Reg, bool isDef, bool isImp = false,
+                        bool isKill = false, bool isDead = false) {
     opType = MO_Register;
     contents.RegNo = Reg;
     IsDef = isDef;
-    IsImp = false;
-    IsKill = false;
-    IsDead = false;
+    IsImp = isImp;
+    IsKill = isKill;
+    IsDead = isDead;
   }
 
   friend std::ostream& operator<<(std::ostream& os, const MachineOperand& mop) {