summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APInt.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-13 23:54:10 +0000
committerChris Lattner <sabre@nondot.org>2010-10-13 23:54:10 +0000
commit0a0a585e6bfc112cb8346b17edecb76969fb5532 (patch)
tree32c6e7158ce34ec3971c5f2ae519dc866515a451 /include/llvm/ADT/APInt.h
parent55561d188246e128e6c452d2e254cfd9fd359f2e (diff)
downloadllvm-0a0a585e6bfc112cb8346b17edecb76969fb5532.tar.gz
llvm-0a0a585e6bfc112cb8346b17edecb76969fb5532.tar.bz2
llvm-0a0a585e6bfc112cb8346b17edecb76969fb5532.tar.xz
constify these methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116455 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APInt.h')
-rw-r--r--include/llvm/ADT/APInt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 525b3ddc06..f5d8c13590 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -808,10 +808,10 @@ public:
// Operations that return overflow indicators.
// ssub_ov - Signed subtraction. Unsigned subtraction never overflows.
- APInt sadd_ov(const APInt &RHS, bool &Overflow);
- APInt ssub_ov(const APInt &RHS, bool &Overflow);
- APInt sdiv_ov(const APInt &RHS, bool &Overflow);
- APInt smul_ov(const APInt &RHS, bool &Overflow);
+ APInt sadd_ov(const APInt &RHS, bool &Overflow) const;
+ APInt ssub_ov(const APInt &RHS, bool &Overflow) const;
+ APInt sdiv_ov(const APInt &RHS, bool &Overflow) const;
+ APInt smul_ov(const APInt &RHS, bool &Overflow) const;
APInt sshl_ov(unsigned Amt, bool &Overflow);
/// @returns the bit value at bitPosition