mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +00:00
add the rest of the comparison routines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60303 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -60,12 +60,12 @@ public:
|
|||||||
void *getOpaqueValue() const { return reinterpret_cast<void*>(Value); }
|
void *getOpaqueValue() const { return reinterpret_cast<void*>(Value); }
|
||||||
void setFromOpaqueValue(void *Val) { Value = reinterpret_cast<intptr_t>(Val);}
|
void setFromOpaqueValue(void *Val) { Value = reinterpret_cast<intptr_t>(Val);}
|
||||||
|
|
||||||
bool operator==(const PointerIntPair &RHS) const {
|
bool operator==(const PointerIntPair &RHS) const {return Value == RHS.Value;}
|
||||||
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 {
|
bool operator>(const PointerIntPair &RHS) const {return Value > RHS.Value;}
|
||||||
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.
|
// Provide specialization of DenseMapInfo for PointerIntPair.
|
||||||
|
Reference in New Issue
Block a user