From cc9816c87b7f878050ca3049d70dd36cde41600a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 16 Nov 2006 02:43:32 +0000 Subject: [PATCH] Added "removeRange", which takes and removes an entire LiveRange. llvm-svn: 31781 --- llvm/include/llvm/CodeGen/LiveInterval.h | 4 ++++ 1 file changed, 4 insertions(+) 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(); }