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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-02-17 05:14:37 +00:00
parent b499866c05
commit 7093d37304
3 changed files with 12 additions and 6 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;
}

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

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