mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Make the comparison operators non-member functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc631588a9
commit
59aa540738
@ -203,12 +203,16 @@ namespace llvm {
|
||||
/// via the llvm.fma.* intrinsic) will always be honored, regardless of
|
||||
/// the value of this option.
|
||||
FPOpFusion::FPOpFusionMode AllowFPOpFusion;
|
||||
|
||||
bool operator==(const TargetOptions &TM);
|
||||
bool operator!=(const TargetOptions &TM) {
|
||||
return !(*this == TM);
|
||||
}
|
||||
};
|
||||
|
||||
// Comparison operators:
|
||||
|
||||
bool operator==(const TargetOptions &LHS, const TargetOptions &RHS);
|
||||
|
||||
bool operator!=(const TargetOptions &LHS, const TargetOptions &RHS) {
|
||||
return !(LHS == RHS);
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
@ -50,8 +50,8 @@ StringRef TargetOptions::getTrapFunctionName() const {
|
||||
return TrapFuncName;
|
||||
}
|
||||
|
||||
bool TargetOptions::operator==(const TargetOptions &TO) {
|
||||
#define ARE_EQUAL(X) X == TO.X
|
||||
bool operator==(const TargetOptions &LHS, const TargetOptions &RHS) {
|
||||
#define ARE_EQUAL(X) LHS.X == RHS.X
|
||||
return
|
||||
ARE_EQUAL(UnsafeFPMath) &&
|
||||
ARE_EQUAL(NoInfsFPMath) &&
|
||||
|
Loading…
Reference in New Issue
Block a user