LiveInterval: Adapt commen to the LI->LR change.
[oota-llvm.git] / include / llvm / CodeGen / MachineInstrBuilder.h
index 4afee44c4b31d4344e8b4e54e478fa3a2aafe7e1..8fe9b280d5d2dcc4ab83a7dd2df3bbe1debe6a0e 100644 (file)
@@ -162,6 +162,11 @@ public:
     return *this;
   }
 
+  const MachineInstrBuilder &setMemRefs(std::pair<MachineInstr::mmo_iterator,
+                                        unsigned> MemOperandsRef) const {
+    MI->setMemRefs(MemOperandsRef);
+    return *this;
+  }
 
   const MachineInstrBuilder &addOperand(const MachineOperand &MO) const {
     MI->addOperand(*MF, MO);
@@ -222,7 +227,8 @@ public:
   }
 
   /// Copy all the implicit operands from OtherMI onto this one.
-  const MachineInstrBuilder &copyImplicitOps(const MachineInstr *OtherMI) {
+  const MachineInstrBuilder &
+  copyImplicitOps(const MachineInstr *OtherMI) const {
     MI->copyImplicitOps(*MF, OtherMI);
     return *this;
   }