aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
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
commit54306fe499499e57ac1bf8c9cd4fbe8321015ffd (patch)
tree2e45eb4130c9ace1d544d22f2cec27bca0041261 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent03c5fa18f17133f1dd0e75883a0ea8ddb366a68a (diff)
downloadllvm-54306fe499499e57ac1bf8c9cd4fbe8321015ffd.zip
llvm-54306fe499499e57ac1bf8c9cd4fbe8321015ffd.tar.gz
llvm-54306fe499499e57ac1bf8c9cd4fbe8321015ffd.tar.bz2
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/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 4b0664e..408a352 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]);