diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-20 00:41:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-20 00:41:09 +0000 |
commit | 02a260aa11a2e1b2c14335274d3c42ca3f3eabc0 (patch) | |
tree | 59bcb7cd7311445a4fc05e67a6d7897f59ebbb83 /lib/Bitcode | |
parent | eb9c8e1e3fd81607f8aa71f2b8b1592d6d333337 (diff) | |
download | external_llvm-02a260aa11a2e1b2c14335274d3c42ca3f3eabc0.zip external_llvm-02a260aa11a2e1b2c14335274d3c42ca3f3eabc0.tar.gz external_llvm-02a260aa11a2e1b2c14335274d3c42ca3f3eabc0.tar.bz2 |
Switch to using Simplified ConstantFP::get API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 141d5e1..ec099a7 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -636,15 +636,15 @@ bool BitcodeReader::ParseConstants() { if (Record.empty()) return Error("Invalid FLOAT record"); if (CurTy == Type::FloatTy) - V = ConstantFP::get(CurTy, APFloat(APInt(32, (uint32_t)Record[0]))); + V = ConstantFP::get(APFloat(APInt(32, (uint32_t)Record[0]))); else if (CurTy == Type::DoubleTy) - V = ConstantFP::get(CurTy, APFloat(APInt(64, Record[0]))); + V = ConstantFP::get(APFloat(APInt(64, Record[0]))); else if (CurTy == Type::X86_FP80Ty) - V = ConstantFP::get(CurTy, APFloat(APInt(80, 2, &Record[0]))); + V = ConstantFP::get(APFloat(APInt(80, 2, &Record[0]))); else if (CurTy == Type::FP128Ty) - V = ConstantFP::get(CurTy, APFloat(APInt(128, 2, &Record[0]), true)); + V = ConstantFP::get(APFloat(APInt(128, 2, &Record[0]), true)); else if (CurTy == Type::PPC_FP128Ty) - V = ConstantFP::get(CurTy, APFloat(APInt(128, 2, &Record[0]))); + V = ConstantFP::get(APFloat(APInt(128, 2, &Record[0]))); else V = UndefValue::get(CurTy); break; |