llvm.org GIT mirror llvm / b39f4c5
[APSInt] Remove named And/Or/Xor methods. No one uses them and I may improve the operator&, operator|, and operator^ to better reuse memory allocations like APInt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300224 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 3 years ago
1 changed file(s) with 0 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
234234 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
235235 return APSInt(static_cast(*this) & RHS, IsUnsigned);
236236 }
237 APSInt And(const APSInt &RHS) const { return this->operator&(RHS); }
238237
239238 APSInt operator|(const APSInt& RHS) const {
240239 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
241240 return APSInt(static_cast(*this) | RHS, IsUnsigned);
242241 }
243 APSInt Or(const APSInt &RHS) const { return this->operator|(RHS); }
244242
245243 APSInt operator^(const APSInt &RHS) const {
246244 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
247245 return APSInt(static_cast(*this) ^ RHS, IsUnsigned);
248246 }
249 APSInt Xor(const APSInt &RHS) const { return this->operator^(RHS); }
250247
251248 APSInt operator*(const APSInt& RHS) const {
252249 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");