[llvm-commits] [llvm] r39885 - /llvm/trunk/include/llvm/ADT/APSInt.h

Chris Lattner sabre at nondot.org
Sun Jul 15 16:32:03 PDT 2007


Author: lattner
Date: Sun Jul 15 18:32:03 2007
New Revision: 39885

URL: http://llvm.org/viewvc/llvm-project?rev=39885&view=rev
Log:
add a helper method.

Modified:
    llvm/trunk/include/llvm/ADT/APSInt.h

Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APSInt.h?rev=39885&r1=39884&r2=39885&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/APSInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APSInt.h Sun Jul 15 18:32:03 2007
@@ -50,6 +50,7 @@
   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) {





More information about the llvm-commits mailing list