Add LiveIntervals::Interval::empty() member function.

llvm-svn: 11520
This commit is contained in:
Alkis Evlogimenos 2004-02-17 05:14:37 +00:00
parent cde4ade314
commit 4d5f42f58f
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}