[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

Reid Spencer reid at x10sys.com
Sun Nov 5 09:09:55 PST 2006



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.278 -> 1.279
---
Log message:

Implement the -enabled-cbe-printf-a feature.


---
Diffs of the changes:  (+2 -2)

 Writer.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.278 llvm/lib/Target/CBackend/Writer.cpp:1.279
--- llvm/lib/Target/CBackend/Writer.cpp:1.278	Thu Nov  2 14:25:49 2006
+++ llvm/lib/Target/CBackend/Writer.cpp	Sun Nov  5 11:09:41 2006
@@ -534,7 +534,7 @@
 // only deal in IEEE FP).
 //
 static bool isFPCSafeToPrint(const ConstantFP *CFP) {
-#if HAVE_PRINTF_A
+#if HAVE_PRINTF_A & ENABLED_CBE_PRINTF_A
   char Buffer[100];
   sprintf(Buffer, "%a", CFP->getValue());
 
@@ -726,7 +726,7 @@
             << " /*inf*/ ";
       } else {
         std::string Num;
-#if HAVE_PRINTF_A
+#if HAVE_PRINTF_A & ENABLE_CBE_PRINTF_A
         // Print out the constant as a floating point number.
         char Buffer[100];
         sprintf(Buffer, "%a", FPC->getValue());






More information about the llvm-commits mailing list