From: Chris Lattner Date: Wed, 1 Aug 2007 00:23:58 +0000 (+0000) Subject: Print floating point literal values better. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86e499d9525ab4f2258724c4ca2826acd6b13a8e;p=clang Print floating point literal values better. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40659 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/StmtPrinter.cpp b/AST/StmtPrinter.cpp index 578f03f8ec..18f605be92 100644 --- a/AST/StmtPrinter.cpp +++ b/AST/StmtPrinter.cpp @@ -375,8 +375,8 @@ void StmtPrinter::VisitIntegerLiteral(IntegerLiteral *Node) { } } void StmtPrinter::VisitFloatingLiteral(FloatingLiteral *Node) { - // FIXME: print value. - OS << "~1.0~"; + // FIXME: print value more precisely. + OS << Node->getValue(); } void StmtPrinter::VisitStringLiteral(StringLiteral *Str) { if (Str->isWide()) OS << 'L';