From: Lang Hames Date: Wed, 4 Nov 2009 01:34:22 +0000 (+0000) Subject: Removed an unnecessary friend declaration and some crufty comments from IndexListEntry. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f3a521f86a17b09c5d4e42f34afe3cf212b8fc1e;p=oota-llvm.git 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 --- diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h index 6014f915529..f9a2e77a4bf 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.