diff options
| author | Bill Wendling <isanbard@gmail.com> | 2006-11-16 02:43:32 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2006-11-16 02:43:32 +0000 |
| commit | cc9816c87b7f878050ca3049d70dd36cde41600a (patch) | |
| tree | 6186326e78b0ac60880e2bbc7da5f91d547bd872 | |
| parent | c7969fd1e775b9e5b464a58fe1e0ef43f2eb2971 (diff) | |
| download | bcm5719-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.h | 4 |
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(); } |

