[cfe-commits] r40659 - /cfe/trunk/AST/StmtPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Jul 31 17:23:58 PDT 2007
Author: lattner
Date: Tue Jul 31 19:23:58 2007
New Revision: 40659
URL: http://llvm.org/viewvc/llvm-project?rev=40659&view=rev
Log:
Print floating point literal values better.
Modified:
cfe/trunk/AST/StmtPrinter.cpp
Modified: cfe/trunk/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/StmtPrinter.cpp?rev=40659&r1=40658&r2=40659&view=diff
==============================================================================
--- cfe/trunk/AST/StmtPrinter.cpp (original)
+++ cfe/trunk/AST/StmtPrinter.cpp Tue Jul 31 19:23:58 2007
@@ -375,8 +375,8 @@
}
}
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';
More information about the cfe-commits
mailing list