summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-05 17:09:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-05 17:09:41 +0000
commit6088f8af16d680668adf4d23fbde5aff08556f58 (patch)
tree259eb135ac87ac74cc7f440e28922a16522152ef
parentd549edc2ccd9a1d17ed9a63c3e2f8a12608894e5 (diff)
downloadbcm5719-llvm-6088f8af16d680668adf4d23fbde5aff08556f58.tar.gz
bcm5719-llvm-6088f8af16d680668adf4d23fbde5aff08556f58.zip
Implement the -enabled-cbe-printf-a feature.
llvm-svn: 31462
-rw-r--r--llvm/lib/Target/CBackend/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp
index 15bf06a6e2a..34671863db2 100644
--- a/llvm/lib/Target/CBackend/Writer.cpp
+++ b/llvm/lib/Target/CBackend/Writer.cpp
@@ -534,7 +534,7 @@ void CWriter::printConstantPacked(ConstantPacked *CP) {
// 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 @@ void CWriter::printConstant(Constant *CPV) {
<< " /*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());
OpenPOWER on IntegriCloud