InstrProf: Add operator!= to coverage counters
I'll use this in clang shortly. Also makes the operator definition style more consistent in this class. llvm-svn: 227018
This commit is contained in:
parent
3c0f124a74
commit
db7afdbb01
|
@ -63,8 +63,12 @@ public:
|
|||
|
||||
unsigned getExpressionID() const { return ID; }
|
||||
|
||||
bool operator==(const Counter &Other) const {
|
||||
return Kind == Other.Kind && ID == Other.ID;
|
||||
friend bool operator==(const Counter &LHS, const Counter &RHS) {
|
||||
return LHS.Kind == RHS.Kind && LHS.ID == RHS.ID;
|
||||
}
|
||||
|
||||
friend bool operator!=(const Counter &LHS, const Counter &RHS) {
|
||||
return !(LHS == RHS);
|
||||
}
|
||||
|
||||
friend bool operator<(const Counter &LHS, const Counter &RHS) {
|
||||
|
|
Loading…
Reference in New Issue