From f7b71c64cfe805d0a48d18d55a739ce8a7e6851a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 15 Jul 2007 23:32:03 +0000 Subject: [PATCH] add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39885 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APSInt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 77c1c9a9843..4eb4be23176 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) { -- 2.34.1