add missing operator
authorChris Lattner <sabre@nondot.org>
Tue, 3 Apr 2007 04:25:46 +0000 (04:25 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Apr 2007 04:25:46 +0000 (04:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35613 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h

index b8b1687def152a3e229167619ddb27b4274c1529..df90753f636c28e59352f27519c722a489e7b661 100644 (file)
@@ -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.