[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Jun 17 18:56:05 PDT 2003
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.88 -> 1.89
---
Log message:
lib/CWriter/Writer.cpp: Copy AsmWriter's ConstantFP checking code here
into a new function FPCSafeToPrint(), and use it in printConstant()
and printFunction() to decide whether we should output ConstantFPs as
floating-point constants or as references to stack-allocated variables.
lib/VMCore/AsmWriter.cpp: Fix an apparent typo in the code mentioned above.
---
Diffs of the changes:
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.88 llvm/lib/VMCore/AsmWriter.cpp:1.89
--- llvm/lib/VMCore/AsmWriter.cpp:1.88 Sat May 31 22:45:51 2003
+++ llvm/lib/VMCore/AsmWriter.cpp Tue Jun 17 18:55:35 2003
@@ -234,7 +234,7 @@
//
if ((StrVal[0] >= '0' && StrVal[0] <= '9') ||
((StrVal[0] == '-' || StrVal[0] == '+') &&
- (StrVal[0] >= '0' && StrVal[0] <= '9')))
+ (StrVal[1] >= '0' && StrVal[1] <= '9')))
// Reparse stringized version!
if (atof(StrVal.c_str()) == CFP->getValue()) {
Out << StrVal; return;
More information about the llvm-commits
mailing list