summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-06 19:20:13 +0000
committerChris Lattner <sabre@nondot.org>2010-03-06 19:20:13 +0000
commit4c1e4db3ff06417fe01efc8ab659a63c95818f93 (patch)
tree574fa9b4ff5fa05536cf795ffd473d6dfba1f513
parent1e93b96117ea324594622c46cf3d48af7ad0551f (diff)
downloadbcm5719-llvm-4c1e4db3ff06417fe01efc8ab659a63c95818f93.tar.gz
bcm5719-llvm-4c1e4db3ff06417fe01efc8ab659a63c95818f93.zip
make APFloat::toString be const.
llvm-svn: 97883
-rw-r--r--llvm/include/llvm/ADT/APFloat.h2
-rw-r--r--llvm/lib/Support/APFloat.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h
index 861b7b99e9c..3cccc814729 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<char> &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 619f061862c..8f860a64672 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud