diff --git a/llvm/include/llvm/CodeGen/LiveInterval.h b/llvm/include/llvm/CodeGen/LiveInterval.h index 86b1873d5ab6..863d9b5b0718 100644 --- a/llvm/include/llvm/CodeGen/LiveInterval.h +++ b/llvm/include/llvm/CodeGen/LiveInterval.h @@ -244,6 +244,10 @@ namespace llvm { /// the range must already be in this interval in its entirety. void removeRange(unsigned Start, unsigned End); + void removeRange(LiveRange LR) { + removeRange(LR.start, LR.end); + } + bool operator<(const LiveInterval& other) const { return beginNumber() < other.beginNumber(); }