From 0ddda3b8c6acc85761636ad46981395fdbe8daba 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97883 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APFloat.h | 2 +- lib/Support/APFloat.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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())