make APFloat::toString be const.
authorChris Lattner <sabre@nondot.org>
Sat, 6 Mar 2010 19:20:13 +0000 (19:20 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 6 Mar 2010 19:20:13 +0000 (19:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97883 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APFloat.h
lib/Support/APFloat.cpp

index 861b7b99e9c32b5b774569fa24880cfc4fb3a25c..3cccc81472973873d3215d281f05382d33c16feb 100644 (file)
@@ -344,7 +344,7 @@ namespace llvm {
     /// 1.01E-2              4             1       1.01E-2
     void toString(SmallVectorImpl<char> &Str,
                   unsigned FormatPrecision = 0,
-                  unsigned FormatMaxPadding = 3);
+                  unsigned FormatMaxPadding = 3) const;
 
   private:
 
index 619f061862c481b0bc754e5711e141e30e833ea0..8f860a646721b1683b7b42c722f88792cd0f8b48 100644 (file)
@@ -3366,7 +3366,7 @@ namespace {
 
 void APFloat::toString(SmallVectorImpl<char> &Str,
                        unsigned FormatPrecision,
-                       unsigned FormatMaxPadding) {
+                       unsigned FormatMaxPadding) const {
   switch (category) {
   case fcInfinity:
     if (isNegative())