OSDN Git Service

[APInt] Remove unused And/Or/Xor methods. They just forward to the corresponding...
authorCraig Topper <craig.topper@gmail.com>
Mon, 6 Mar 2017 00:24:53 +0000 (00:24 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 6 Mar 2017 00:24:53 +0000 (00:24 +0000)
I plan to enhance the operator overloads to handle rvalues and these methods would not longer be optimal to use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296993 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h

index 192a5fe..c57bac4 100644 (file)
@@ -798,7 +798,6 @@ public:
       return APInt(getBitWidth(), VAL & RHS.VAL);
     return AndSlowCase(RHS);
   }
-  APInt And(const APInt &RHS) const { return this->operator&(RHS); }
 
   /// \brief Bitwise OR operator.
   ///
@@ -812,14 +811,6 @@ public:
     return OrSlowCase(RHS);
   }
 
-  /// \brief Bitwise OR function.
-  ///
-  /// Performs a bitwise or on *this and RHS. This is implemented by simply
-  /// calling operator|.
-  ///
-  /// \returns An APInt value representing the bitwise OR of *this and RHS.
-  APInt Or(const APInt &RHS) const { return this->operator|(RHS); }
-
   /// \brief Bitwise XOR operator.
   ///
   /// Performs a bitwise XOR operation on *this and RHS.
@@ -832,14 +823,6 @@ public:
     return XorSlowCase(RHS);
   }
 
-  /// \brief Bitwise XOR function.
-  ///
-  /// Performs a bitwise XOR operation on *this and RHS. This is implemented
-  /// through the usage of operator^.
-  ///
-  /// \returns An APInt value representing the bitwise XOR of *this and RHS.
-  APInt Xor(const APInt &RHS) const { return this->operator^(RHS); }
-
   /// \brief Multiplication operator.
   ///
   /// Multiplies this APInt by RHS and returns the result.