From cce21cc3477ff66167743cb7ba8523004f23d3f9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 19 Jun 2013 22:09:25 +0000 Subject: Make the comparison operators non-member functions. llvm-svn: 184373 --- llvm/lib/CodeGen/TargetOptionsImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/TargetOptionsImpl.cpp') diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp index c9c88c183a1..2cc0d4002d7 100644 --- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp +++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp @@ -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) && -- cgit v1.2.3