diff options
| author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-17 05:14:37 +0000 |
|---|---|---|
| committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-17 05:14:37 +0000 |
| commit | 7093d37304cd9f4b8208e50a0f68a0a507a18ac2 (patch) | |
| tree | 24b22ab07bc957bde1c4a5403b3e37a2c05f1793 /lib/CodeGen/LiveIntervalAnalysis.h | |
| parent | b499866c05cac0e97a22c5e1f477c89096be836b (diff) | |
Add LiveIntervals::Interval::empty() member function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.h')
| -rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.h b/lib/CodeGen/LiveIntervalAnalysis.h index ca2558628e..82cf91c257 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.h +++ b/lib/CodeGen/LiveIntervalAnalysis.h @@ -42,13 +42,15 @@ namespace llvm { Interval(unsigned r); + bool empty() const { return ranges.empty(); } + unsigned start() const { - assert(!ranges.empty() && "empty interval for register"); + assert(!empty() && "empty interval for register"); return ranges.front().first; } unsigned end() const { - assert(!ranges.empty() && "empty interval for register"); + assert(!empty() && "empty interval for register"); return ranges.back().second; } |
