Removed an unnecessary friend declaration and some crufty comments from IndexListEntry.
authorLang Hames <lhames@gmail.com>
Wed, 4 Nov 2009 01:34:22 +0000 (01:34 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 4 Nov 2009 01:34:22 +0000 (01:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85995 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SlotIndexes.h

index 6014f915529cd7b8f1a5dcc87fdc04eee3211240..f9a2e77a4bf9316719e6b425930af4294fc0cb68 100644 (file)
@@ -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.