Remove const from iterators passed by value.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 31 Jul 2004 08:55:23 +0000 (08:55 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 31 Jul 2004 08:55:23 +0000 (08:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15359 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrInfo.h

index 90b7356b0db91d84d018dff6adc3199261fd1793..a0b9e3036862ed213048f6930d70c466eed7fa6d 100644 (file)
@@ -161,7 +161,7 @@ public:
   // Insert a goto (unconditional branch) sequence to MBB, right
   // before MBBI
   virtual void insertGoto(const MachineBasicBlock& MBB,
-                          const MachineBasicBlock::iterator MBBI) const {
+                          MachineBasicBlock::iterator MBBI) const {
     assert(0 && "Target didn't implement insertGoto!");
   }
 
@@ -169,7 +169,7 @@ public:
   // Reverses the branch condition of the MachineInstr pointed by
   // MI. The instruction is replaced and the new MI is returned.
   virtual MachineBasicBlock::iterator
-  reverseBranchCondition(const MachineBasicBlock::iterator MI) const {
+  reverseBranchCondition(MachineBasicBlock::iterator MI) const {
     assert(0 && "Target didn't implement reverseBranchCondition!");
   }