diff options
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
| -rw-r--r-- | lib/CodeGen/MachineBasicBlock.cpp | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 06112723497b..590acc01008a 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -350,6 +350,13 @@ void MachineBasicBlock::removeLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) {      LiveIns.erase(I);  } +MachineBasicBlock::livein_iterator +MachineBasicBlock::removeLiveIn(MachineBasicBlock::livein_iterator I) { +  // Get non-const version of iterator. +  LiveInVector::iterator LI = LiveIns.begin() + (I - LiveIns.begin()); +  return LiveIns.erase(LI); +} +  bool MachineBasicBlock::isLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) const {    livein_iterator I = find_if(        LiveIns, [Reg](const RegisterMaskPair &LI) { return LI.PhysReg == Reg; }); | 
