diff options
author | Dale Johannesen <dalej@apple.com> | 2008-10-09 18:53:47 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-10-09 18:53:47 +0000 |
commit | 7111b02c734c992b8c97d9918118768026dad79e (patch) | |
tree | c6a444a3819e1ae62e870dd0040a8cd4f699d778 /lib/CodeGen/MachOWriter.cpp | |
parent | a6bf66d0d6c1ed9bb657f72bc89c432c4ee96f63 (diff) | |
download | external_llvm-7111b02c734c992b8c97d9918118768026dad79e.zip external_llvm-7111b02c734c992b8c97d9918118768026dad79e.tar.gz external_llvm-7111b02c734c992b8c97d9918118768026dad79e.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/CodeGen/MachOWriter.cpp')
-rw-r--r-- | lib/CodeGen/MachOWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index 253c5ca..e90f1e9 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -878,7 +878,7 @@ void MachOWriter::InitMem(const Constant *C, void *Addr, intptr_t Offset, break; } case Type::FloatTyID: { - uint32_t val = cast<ConstantFP>(PC)->getValueAPF().convertToAPInt(). + uint32_t val = cast<ConstantFP>(PC)->getValueAPF().bitcastToAPInt(). getZExtValue(); if (TD->isBigEndian()) val = ByteSwap_32(val); @@ -889,7 +889,7 @@ void MachOWriter::InitMem(const Constant *C, void *Addr, intptr_t Offset, break; } case Type::DoubleTyID: { - uint64_t val = cast<ConstantFP>(PC)->getValueAPF().convertToAPInt(). + uint64_t val = cast<ConstantFP>(PC)->getValueAPF().bitcastToAPInt(). getZExtValue(); if (TD->isBigEndian()) val = ByteSwap_64(val); |