mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Removed an unnecessary friend declaration and some crufty comments from IndexListEntry.
llvm-svn: 85995
This commit is contained in:
parent
4cd9c97c74
commit
b63bef3da7
@ -37,7 +37,6 @@ namespace llvm {
|
||||
/// information.
|
||||
class IndexListEntry {
|
||||
friend class SlotIndex;
|
||||
friend class SlotIndexes;
|
||||
|
||||
private:
|
||||
|
||||
@ -63,38 +62,6 @@ namespace llvm {
|
||||
IndexListEntry* getPrev() { return prev; }
|
||||
const IndexListEntry* getPrev() const { return prev; }
|
||||
void setPrev(IndexListEntry *prev) { this->prev = prev; }
|
||||
|
||||
/*
|
||||
bool operator==(const IndexListEntry &other) const {
|
||||
assert(getIndex() != other.getIndex() || this == &other &&
|
||||
"Non-equal index list entries compare equal.");
|
||||
return getIndex() == other.getIndex();
|
||||
}
|
||||
|
||||
bool operator!=(const IndexListEntry &other) const {
|
||||
return getIndex() != other.getIndex();
|
||||
}
|
||||
|
||||
bool operator<(const IndexListEntry &other) const {
|
||||
return getIndex() < other.getIndex();
|
||||
}
|
||||
|
||||
bool operator<=(const IndexListEntry &other) const {
|
||||
return getIndex() <= other.getIndex();
|
||||
}
|
||||
|
||||
bool operator>(const IndexListEntry &other) const {
|
||||
return getIndex() > other.getIndex();
|
||||
}
|
||||
|
||||
bool operator>=(const IndexListEntry &other) const {
|
||||
return getIndex() >= other.getIndex();
|
||||
}
|
||||
|
||||
int distance(const IndexListEntry &other) const {
|
||||
return other.getIndex() - getIndex();
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
||||
// Specialize PointerLikeTypeTraits for IndexListEntry.
|
||||
|
Loading…
Reference in New Issue
Block a user