diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-06 19:20:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-06 19:20:13 +0000 |
commit | 0ddda3b8c6acc85761636ad46981395fdbe8daba (patch) | |
tree | e030705b7f319e860ae5e6b3e056ed6902bbd2e0 | |
parent | 1c383ca2ef202cc55882a5fc27cc12405a23bdeb (diff) | |
download | external_llvm-0ddda3b8c6acc85761636ad46981395fdbe8daba.zip external_llvm-0ddda3b8c6acc85761636ad46981395fdbe8daba.tar.gz external_llvm-0ddda3b8c6acc85761636ad46981395fdbe8daba.tar.bz2 |
make APFloat::toString be const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97883 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APFloat.h | 2 | ||||
-rw-r--r-- | 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 861b7b9..3cccc81 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<char> &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 619f061..8f860a6 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -3366,7 +3366,7 @@ namespace { void APFloat::toString(SmallVectorImpl<char> &Str, unsigned FormatPrecision, - unsigned FormatMaxPadding) { + unsigned FormatMaxPadding) const { switch (category) { case fcInfinity: if (isNegative()) |