From fae5c8fae9edf0a0f423514925d4ef3d761b49ef Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 3 Apr 2007 04:25:46 +0000 Subject: [PATCH] add missing operator llvm-svn: 35613 --- llvm/include/llvm/ADT/APInt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h index b8b1687def15..df90753f636c 100644 --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/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.