summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-16 02:43:32 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-16 02:43:32 +0000
commitcc9816c87b7f878050ca3049d70dd36cde41600a (patch)
tree6186326e78b0ac60880e2bbc7da5f91d547bd872
parentc7969fd1e775b9e5b464a58fe1e0ef43f2eb2971 (diff)
downloadbcm5719-llvm-cc9816c87b7f878050ca3049d70dd36cde41600a.tar.gz
bcm5719-llvm-cc9816c87b7f878050ca3049d70dd36cde41600a.zip
Added "removeRange", which takes and removes an entire LiveRange.
llvm-svn: 31781
-rw-r--r--llvm/include/llvm/CodeGen/LiveInterval.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveInterval.h b/llvm/include/llvm/CodeGen/LiveInterval.h
index 86b1873d5ab..863d9b5b071 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();
}
OpenPOWER on IntegriCloud