From: Chris Lattner Date: Sat, 6 Mar 2010 19:20:13 +0000 (+0000) Subject: make APFloat::toString be const. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ddda3b8c6acc85761636ad46981395fdbe8daba;p=oota-llvm.git make APFloat::toString be const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97883 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 861b7b99e9c..3cccc814729 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -344,7 +344,7 @@ namespace llvm { /// 1.01E-2 4 1 1.01E-2 void toString(SmallVectorImpl &Str, unsigned FormatPrecision = 0, - unsigned FormatMaxPadding = 3); + unsigned FormatMaxPadding = 3) const; private: diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 619f061862c..8f860a64672 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -3366,7 +3366,7 @@ namespace { void APFloat::toString(SmallVectorImpl &Str, unsigned FormatPrecision, - unsigned FormatMaxPadding) { + unsigned FormatMaxPadding) const { switch (category) { case fcInfinity: if (isNegative())