aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CppBackend
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-10-09 18:53:47 +0000
committerDale Johannesen <dalej@apple.com>2008-10-09 18:53:47 +0000
commit49cc7cec5d3bb722e7bad032233e6d763fba494f (patch)
treec6a444a3819e1ae62e870dd0040a8cd4f699d778 /lib/Target/CppBackend
parent2b8703f1027bac610e8b073429a5298b3a08db5d (diff)
downloadexternal_llvm-49cc7cec5d3bb722e7bad032233e6d763fba494f.zip
external_llvm-49cc7cec5d3bb722e7bad032233e6d763fba494f.tar.gz
external_llvm-49cc7cec5d3bb722e7bad032233e6d763fba494f.tar.bz2
Rename APFloat::convertToAPInt to bitcastToAPInt to
make it clearer what the function does. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 75a77a8..21e6735 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -254,11 +254,12 @@ namespace {
Out << StrVal << "f";
} else if (CFP->getType() == Type::DoubleTy)
Out << "BitsToDouble(0x"
- << utohexstr(CFP->getValueAPF().convertToAPInt().getZExtValue())
+ << utohexstr(CFP->getValueAPF().bitcastToAPInt().getZExtValue())
<< "ULL) /* " << StrVal << " */";
else
Out << "BitsToFloat(0x"
- << utohexstr((uint32_t)CFP->getValueAPF().convertToAPInt().getZExtValue())
+ << utohexstr((uint32_t)CFP->getValueAPF().
+ bitcastToAPInt().getZExtValue())
<< "U) /* " << StrVal << " */";
Out << ")";
#if HAVE_PRINTF_A