[llvm-commits] [llvm] r97883 - in /llvm/trunk: include/llvm/ADT/APFloat.h lib/Support/APFloat.cpp
Chris Lattner
sabre at nondot.org
Sat Mar 6 11:20:13 PST 2010
Author: lattner
Date: Sat Mar 6 13:20:13 2010
New Revision: 97883
URL: http://llvm.org/viewvc/llvm-project?rev=97883&view=rev
Log:
make APFloat::toString be const.
Modified:
llvm/trunk/include/llvm/ADT/APFloat.h
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/include/llvm/ADT/APFloat.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APFloat.h?rev=97883&r1=97882&r2=97883&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h (original)
+++ llvm/trunk/include/llvm/ADT/APFloat.h Sat Mar 6 13:20:13 2010
@@ -344,7 +344,7 @@
/// 1.01E-2 4 1 1.01E-2
void toString(SmallVectorImpl<char> &Str,
unsigned FormatPrecision = 0,
- unsigned FormatMaxPadding = 3);
+ unsigned FormatMaxPadding = 3) const;
private:
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=97883&r1=97882&r2=97883&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Sat Mar 6 13:20:13 2010
@@ -3366,7 +3366,7 @@
void APFloat::toString(SmallVectorImpl<char> &Str,
unsigned FormatPrecision,
- unsigned FormatMaxPadding) {
+ unsigned FormatMaxPadding) const {
switch (category) {
case fcInfinity:
if (isNegative())
More information about the llvm-commits
mailing list