diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-05 17:09:41 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-05 17:09:41 +0000 |
commit | 7c475c5d12f3b8d6575ca330001d6a7f6e85f66a (patch) | |
tree | c72b845d83489f9c4c746db3ec7ae10296cded4c /lib/Target/CBackend/Writer.cpp | |
parent | 65c5d75bc8900c61707f54f4057040fac4a8d58a (diff) |
Implement the -enabled-cbe-printf-a feature.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 15bf06a6e2..34671863db 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/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()); |