forked from OSchip/llvm-project
Add LiveIntervals::Interval::empty() member function.
llvm-svn: 11520
This commit is contained in:
parent
cde4ade314
commit
4d5f42f58f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue