diff options
author | Lang Hames <lhames@gmail.com> | 2009-11-04 01:34:22 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-11-04 01:34:22 +0000 |
commit | f3a521f86a17b09c5d4e42f34afe3cf212b8fc1e (patch) | |
tree | c7b224848d873337388aa351b5d014273b9066e7 /include/llvm | |
parent | dece1e217a65268806f63ab95b53fd28b605c0af (diff) | |
download | external_llvm-f3a521f86a17b09c5d4e42f34afe3cf212b8fc1e.zip external_llvm-f3a521f86a17b09c5d4e42f34afe3cf212b8fc1e.tar.gz external_llvm-f3a521f86a17b09c5d4e42f34afe3cf212b8fc1e.tar.bz2 |
Removed an unnecessary friend declaration and some crufty comments from IndexListEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/SlotIndexes.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h index 6014f91..f9a2e77 100644 --- a/include/llvm/CodeGen/SlotIndexes.h +++ b/include/llvm/CodeGen/SlotIndexes.h @@ -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. |