aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-15 23:32:03 +0000
committerChris Lattner <sabre@nondot.org>2007-07-15 23:32:03 +0000
commitf7b71c64cfe805d0a48d18d55a739ce8a7e6851a (patch)
tree8d0d52eaeb28f5fb744ca79f6bad83631280b9db /include/llvm/ADT
parent04d519e16078957eeda13e32868c437c73888853 (diff)
downloadexternal_llvm-f7b71c64cfe805d0a48d18d55a739ce8a7e6851a.zip
external_llvm-f7b71c64cfe805d0a48d18d55a739ce8a7e6851a.tar.gz
external_llvm-f7b71c64cfe805d0a48d18d55a739ce8a7e6851a.tar.bz2
add a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/APSInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h
index 77c1c9a..4eb4be2 100644
--- a/include/llvm/ADT/APSInt.h
+++ b/include/llvm/ADT/APSInt.h
@@ -50,6 +50,7 @@ public:
bool isSigned() const { return !IsUnsigned; }
bool isUnsigned() const { return IsUnsigned; }
void setIsUnsigned(bool Val) { IsUnsigned = Val; }
+ void setIsSigned(bool Val) { IsUnsigned = !Val; }
const APSInt &operator%=(const APSInt &RHS) {