make APFloat::toString be const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-03-06 19:20:13 +00:00
parent 1c383ca2ef
commit 0ddda3b8c6
2 changed files with 2 additions and 2 deletions

View 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:

View 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())