mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Implement David Blaikie's suggestion for comparison operators
llvm-svn: 314822
This commit is contained in:
parent
abd9b7ecb5
commit
b41768c2ea
@ -116,10 +116,15 @@ public:
|
||||
return DbgValueLocation(NewLocNo, WasIndirect);
|
||||
}
|
||||
|
||||
bool operator==(const DbgValueLocation &O) const {
|
||||
return LocNo == O.LocNo && WasIndirect == O.WasIndirect;
|
||||
friend inline bool operator==(const DbgValueLocation &LHS,
|
||||
const DbgValueLocation &RHS) {
|
||||
return LHS.LocNo == RHS.LocNo && LHS.WasIndirect == RHS.WasIndirect;
|
||||
}
|
||||
|
||||
friend inline bool operator!=(const DbgValueLocation &LHS,
|
||||
const DbgValueLocation &RHS) {
|
||||
return !(LHS == RHS);
|
||||
}
|
||||
bool operator!=(const DbgValueLocation &O) const { return !(*this == O); }
|
||||
|
||||
private:
|
||||
unsigned LocNo : 31;
|
||||
|
Loading…
x
Reference in New Issue
Block a user