summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-06-19 22:09:25 +0000
committerBill Wendling <isanbard@gmail.com>2013-06-19 22:09:25 +0000
commit59aa54073848645cd20c828dfb1088127c541b36 (patch)
treed9138aa5ca0f28366e0436f56961231530621eb7 /lib
parentcc631588a96ef487814bd4a5b02120d25437aaff (diff)
downloadllvm-59aa54073848645cd20c828dfb1088127c541b36.tar.gz
llvm-59aa54073848645cd20c828dfb1088127c541b36.tar.bz2
llvm-59aa54073848645cd20c828dfb1088127c541b36.tar.xz
Make the comparison operators non-member functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/TargetOptionsImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/TargetOptionsImpl.cpp b/lib/CodeGen/TargetOptionsImpl.cpp
index c9c88c183a..2cc0d4002d 100644
--- a/lib/CodeGen/TargetOptionsImpl.cpp
+++ b/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) &&