[prev in list] [next in list] [prev in thread] [next in thread]
List: llvm-commits
Subject: [llvm-commits] [llvm] r60303 -
From: Chris Lattner <sabre () nondot ! org>
Date: 2008-11-30 19:10:42
Message-ID: 200811301910.mAUJAgkH013584 () zion ! cs ! uiuc ! edu
[Download RAW message or body]
Author: lattner
Date: Sun Nov 30 13:10:41 2008
New Revision: 60303
URL: http://llvm.org/viewvc/llvm-project?rev=60303&view=rev
Log:
add the rest of the comparison routines.
Modified:
llvm/trunk/include/llvm/ADT/PointerIntPair.h
Modified: llvm/trunk/include/llvm/ADT/PointerIntPair.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PointerIntPair.h?rev=60303&r1=60302&r2=60303&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/PointerIntPair.h (original)
+++ llvm/trunk/include/llvm/ADT/PointerIntPair.h Sun Nov 30 13:10:41 2008
@@ -60,12 +60,12 @@
void *getOpaqueValue() const { return reinterpret_cast<void*>(Value); }
void setFromOpaqueValue(void *Val) { Value = reinterpret_cast<intptr_t>(Val);}
- bool operator==(const PointerIntPair &RHS) const {
- return Value == RHS.Value;
- }
- bool operator!=(const PointerIntPair &RHS) const {
- return Value != RHS.Value;
- }
+ bool operator==(const PointerIntPair &RHS) const {return Value == RHS.Value;}
+ bool operator!=(const PointerIntPair &RHS) const {return Value != RHS.Value;}
+ bool operator<(const PointerIntPair &RHS) const {return Value < RHS.Value;}
+ bool operator>(const PointerIntPair &RHS) const {return Value > RHS.Value;}
+ bool operator<=(const PointerIntPair &RHS) const {return Value <= RHS.Value;}
+ bool operator>=(const PointerIntPair &RHS) const {return Value >= RHS.Value;}
};
// Provide specialization of DenseMapInfo for PointerIntPair.
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic