From 1bcf7a309eb46c66adc154ad9c8f0562653a8e13 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31781 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/LiveInterval.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 86b1873d5ab..863d9b5b071 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/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(); }