[llvm] r184348 - Add operator!= as the compliment to operator==. This is for a future change.

Bill Wendling isanbard at gmail.com
Wed Jun 19 13:50:13 PDT 2013


Author: void
Date: Wed Jun 19 15:50:12 2013
New Revision: 184348

URL: http://llvm.org/viewvc/llvm-project?rev=184348&view=rev
Log:
Add operator!= as the compliment to operator==. This is for a future change.

Modified:
    llvm/trunk/include/llvm/Target/TargetOptions.h

Modified: llvm/trunk/include/llvm/Target/TargetOptions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetOptions.h?rev=184348&r1=184347&r2=184348&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetOptions.h (original)
+++ llvm/trunk/include/llvm/Target/TargetOptions.h Wed Jun 19 15:50:12 2013
@@ -204,7 +204,10 @@ namespace llvm {
     /// the value of this option.
     FPOpFusion::FPOpFusionMode AllowFPOpFusion;
 
-    bool operator==(const TargetOptions &);
+    bool operator==(const TargetOptions &TM);
+    bool operator!=(const TargetOptions &TM) {
+      return !(*this == TM);
+    }
   };
 } // End llvm namespace
 





More information about the llvm-commits mailing list