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

Chris Lattner sabre at nondot.org
Wed Aug 22 22:21:48 PDT 2007


Author: lattner
Date: Thu Aug 23 00:21:48 2007
New Revision: 41311

URL: http://llvm.org/viewvc/llvm-project?rev=41311&view=rev
Log:
default this to radix 10 like the toString(Un)Signed methods.

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=41311&r1=41310&r2=41311&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/APSInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APSInt.h Thu Aug 23 00:21:48 2007
@@ -54,7 +54,7 @@
   
   /// This is used internally to convert an APInt to a string.
   /// @brief Converts an APInt to a std::string
-  std::string toString(uint8_t Radix) const {
+  std::string toString(uint8_t Radix = 10) const {
     return APInt::toString(Radix, isSigned());
   }
   





More information about the llvm-commits mailing list