summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APInt.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-03 04:25:46 +0000
committerChris Lattner <sabre@nondot.org>2007-04-03 04:25:46 +0000
commitef65293dc27c2d7b1ba1fc7c7ffd802e86b780ec (patch)
tree602a033cee86f1fabb442e07e12092b66333c1b7 /include/llvm/ADT/APInt.h
parent44ad43033ee94109accee4286a36d782ee6b96b1 (diff)
downloadllvm-ef65293dc27c2d7b1ba1fc7c7ffd802e86b780ec.tar.gz
llvm-ef65293dc27c2d7b1ba1fc7c7ffd802e86b780ec.tar.bz2
llvm-ef65293dc27c2d7b1ba1fc7c7ffd802e86b780ec.tar.xz
add missing operator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APInt.h')
-rw-r--r--include/llvm/ADT/APInt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index b8b1687def..df90753f63 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.