From 4c1e4db3ff06417fe01efc8ab659a63c95818f93 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 6 Mar 2010 19:20:13 +0000 Subject: [PATCH] make APFloat::toString be const. llvm-svn: 97883 --- llvm/include/llvm/ADT/APFloat.h | 2 +- llvm/lib/Support/APFloat.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h index 861b7b99e9c3..3cccc8147297 100644 --- a/llvm/include/llvm/ADT/APFloat.h +++ b/llvm/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/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 619f061862c4..8f860a646721 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/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())