llvm.org GIT mirror llvm / 59aa540
Make the comparison operators non-member functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184373 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
2 changed file(s) with 11 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
202202 /// via the llvm.fma.* intrinsic) will always be honored, regardless of
203203 /// the value of this option.
204204 FPOpFusion::FPOpFusionMode AllowFPOpFusion;
205
206 bool operator==(const TargetOptions &TM);
207 bool operator!=(const TargetOptions &TM) {
208 return !(*this == TM);
209 }
210205 };
206
207 // Comparison operators:
208
209 bool operator==(const TargetOptions &LHS, const TargetOptions &RHS);
210
211 bool operator!=(const TargetOptions &LHS, const TargetOptions &RHS) {
212 return !(LHS == RHS);
213 }
214
211215 } // End llvm namespace
212216
213217 #endif
4949 return TrapFuncName;
5050 }
5151
52 bool TargetOptions::operator==(const TargetOptions &TO) {
53 #define ARE_EQUAL(X) X == TO.X
52 bool operator==(const TargetOptions &LHS, const TargetOptions &RHS) {
53 #define ARE_EQUAL(X) LHS.X == RHS.X
5454 return
5555 ARE_EQUAL(UnsafeFPMath) &&
5656 ARE_EQUAL(NoInfsFPMath) &&