From: Chris Lattner Date: Sun, 15 Jul 2007 23:32:03 +0000 (+0000) Subject: add a helper method. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f7b71c64cfe805d0a48d18d55a739ce8a7e6851a;p=oota-llvm.git add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39885 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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) {