[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h

Chris Lattner sabre at nondot.org
Mon Apr 2 21:26:03 PDT 2007



Changes in directory llvm/include/llvm/ADT:

APInt.h updated: 1.61 -> 1.62
---
Log message:

add missing operator


---
Diffs of the changes:  (+4 -0)

 APInt.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/ADT/APInt.h
diff -u llvm/include/llvm/ADT/APInt.h:1.61 llvm/include/llvm/ADT/APInt.h:1.62
--- llvm/include/llvm/ADT/APInt.h:1.61	Mon Apr  2 00:41:00 2007
+++ llvm/include/llvm/ADT/APInt.h	Mon Apr  2 23:25:46 2007
@@ -542,6 +542,10 @@
   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.






More information about the llvm-commits mailing list