summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/PointerIntPair.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-30 19:10:41 +0000
committerChris Lattner <sabre@nondot.org>2008-11-30 19:10:41 +0000
commit012618f0fc4df0664e6d7ad6b443173d89820213 (patch)
tree030f5fa4d26111625d96e67343ac2dfa260faf19 /include/llvm/ADT/PointerIntPair.h
parentb01865c210f4272904b3b3099474ee7f43bc7bec (diff)
downloadllvm-012618f0fc4df0664e6d7ad6b443173d89820213.tar.gz
llvm-012618f0fc4df0664e6d7ad6b443173d89820213.tar.bz2
llvm-012618f0fc4df0664e6d7ad6b443173d89820213.tar.xz
add the rest of the comparison routines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/PointerIntPair.h')
-rw-r--r--include/llvm/ADT/PointerIntPair.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h
index 5a9425457d..d5c89b890a 100644
--- a/include/llvm/ADT/PointerIntPair.h
+++ b/include/llvm/ADT/PointerIntPair.h
@@ -60,12 +60,12 @@ public:
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.