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 | 54306fe499499e57ac1bf8c9cd4fbe8321015ffd (patch) | |
| tree | 2e45eb4130c9ace1d544d22f2cec27bca0041261 /llvm/lib/Bitcode/Writer | |
| parent | 03c5fa18f17133f1dd0e75883a0ea8ddb366a68a (diff) | |
| download | bcm5719-llvm-54306fe499499e57ac1bf8c9cd4fbe8321015ffd.tar.gz bcm5719-llvm-54306fe499499e57ac1bf8c9cd4fbe8321015ffd.zip | |
Rename APFloat::convertToAPInt to bitcastToAPInt to
make it clearer what the function does. No functional
change.
llvm-svn: 57325
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
| -rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/Bitcode/Writer/SerializeAPFloat.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 4b0664e27b5..408a352bcff 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -542,15 +542,15 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal, Code = bitc::CST_CODE_FLOAT; const Type *Ty = CFP->getType(); if (Ty == Type::FloatTy || Ty == Type::DoubleTy) { - Record.push_back(CFP->getValueAPF().convertToAPInt().getZExtValue()); + Record.push_back(CFP->getValueAPF().bitcastToAPInt().getZExtValue()); } else if (Ty == Type::X86_FP80Ty) { // api needed to prevent premature destruction - APInt api = CFP->getValueAPF().convertToAPInt(); + APInt api = CFP->getValueAPF().bitcastToAPInt(); const uint64_t *p = api.getRawData(); Record.push_back(p[0]); Record.push_back((uint16_t)p[1]); } else if (Ty == Type::FP128Ty || Ty == Type::PPC_FP128Ty) { - APInt api = CFP->getValueAPF().convertToAPInt(); + APInt api = CFP->getValueAPF().bitcastToAPInt(); const uint64_t *p = api.getRawData(); Record.push_back(p[0]); Record.push_back(p[1]); diff --git a/llvm/lib/Bitcode/Writer/SerializeAPFloat.cpp b/llvm/lib/Bitcode/Writer/SerializeAPFloat.cpp index 0e644522b10..25d954faa13 100644 --- a/llvm/lib/Bitcode/Writer/SerializeAPFloat.cpp +++ b/llvm/lib/Bitcode/Writer/SerializeAPFloat.cpp @@ -17,5 +17,5 @@ using namespace llvm; void APFloat::Emit(Serializer& S) const { - S.Emit(convertToAPInt()); + S.Emit(bitcastToAPInt()); } |

