add a helper method.
authorChris Lattner <sabre@nondot.org>
Sun, 15 Jul 2007 23:32:03 +0000 (23:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Jul 2007 23:32:03 +0000 (23:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39885 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APSInt.h

index 77c1c9a984364868264d1f4259784df485a16cb6..4eb4be231765d948cd29b90ffdd19a2eeaa43204 100644 (file)
@@ -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) {