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 | 49cc7cec5d3bb722e7bad032233e6d763fba494f (patch) | |
tree | c6a444a3819e1ae62e870dd0040a8cd4f699d778 /lib/Target/MSIL | |
parent | 2b8703f1027bac610e8b073429a5298b3a08db5d (diff) | |
download | external_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/MSIL')
-rw-r--r-- | lib/Target/MSIL/MSILWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/MSIL/MSILWriter.cpp b/lib/Target/MSIL/MSILWriter.cpp index cef8da2..8e4ca1f 100644 --- a/lib/Target/MSIL/MSILWriter.cpp +++ b/lib/Target/MSIL/MSILWriter.cpp @@ -432,10 +432,10 @@ void MSILWriter::printConstLoad(const Constant* C) { uint64_t X; unsigned Size; if (FP->getType()->getTypeID()==Type::FloatTyID) { - X = (uint32_t)FP->getValueAPF().convertToAPInt().getZExtValue(); + X = (uint32_t)FP->getValueAPF().bitcastToAPInt().getZExtValue(); Size = 4; } else { - X = FP->getValueAPF().convertToAPInt().getZExtValue(); + X = FP->getValueAPF().bitcastToAPInt().getZExtValue(); Size = 8; } Out << "\tldc.r" << Size << "\t( " << utohexstr(X) << ')'; @@ -1477,10 +1477,10 @@ void MSILWriter::printStaticConstant(const Constant* C, uint64_t& Offset) { const ConstantFP* FP = cast<ConstantFP>(C); if (Ty->getTypeID() == Type::FloatTyID) Out << "int32 (" << - (uint32_t)FP->getValueAPF().convertToAPInt().getZExtValue() << ')'; + (uint32_t)FP->getValueAPF().bitcastToAPInt().getZExtValue() << ')'; else Out << "int64 (" << - FP->getValueAPF().convertToAPInt().getZExtValue() << ')'; + FP->getValueAPF().bitcastToAPInt().getZExtValue() << ')'; break; } case Type::ArrayTyID: |