[llvm-commits] [llvm] r85995 - /llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
Lang Hames
lhames at gmail.com
Tue Nov 3 17:34:22 PST 2009
Author: lhames
Date: Tue Nov 3 19:34:22 2009
New Revision: 85995
URL: http://llvm.org/viewvc/llvm-project?rev=85995&view=rev
Log:
Removed an unnecessary friend declaration and some crufty comments from IndexListEntry.
Modified:
llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
Modified: llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SlotIndexes.h?rev=85995&r1=85994&r2=85995&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SlotIndexes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SlotIndexes.h Tue Nov 3 19:34:22 2009
@@ -37,7 +37,6 @@
/// information.
class IndexListEntry {
friend class SlotIndex;
- friend class SlotIndexes;
private:
@@ -63,38 +62,6 @@
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.
More information about the llvm-commits
mailing list