From: Craig Topper Date: Mon, 6 Mar 2017 00:24:53 +0000 (+0000) Subject: [APInt] Remove unused And/Or/Xor methods. They just forward to the corresponding... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ac3bab13f4bb2e7786535e04a8ead6dade19cfc;p=llvm [APInt] Remove unused And/Or/Xor methods. They just forward to the corresponding operator overload. 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 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index 192a5fe31f7..c57bac4fe26 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -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.