From: Chris Lattner Date: Tue, 3 Apr 2007 04:25:46 +0000 (+0000) Subject: add missing operator X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ef65293dc27c2d7b1ba1fc7c7ffd802e86b780ec;p=oota-llvm.git add missing operator git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35613 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index b8b1687def1..df90753f636 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -542,6 +542,10 @@ public: APInt operator-(uint64_t RHS) const { return (*this) - APInt(BitWidth, RHS); } + + APInt operator<<(unsigned Bits) const { + return shl(Bits); + } /// Arithmetic right-shift this APInt by shiftAmt. /// @brief Arithmetic right-shift function.