diff options
author | Dale Johannesen <dalej@apple.com> | 2007-09-12 03:30:33 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-09-12 03:30:33 +0000 |
commit | 9d5f45607793052bf5b4436d1b43013fab9999ac (patch) | |
tree | da064f263b6242adf84ced2a98439707a6114ddd /lib/Target/CBackend | |
parent | 257500db0437b6089f46ccf58bcdf04ad8dae9d9 (diff) | |
download | external_llvm-9d5f45607793052bf5b4436d1b43013fab9999ac.zip external_llvm-9d5f45607793052bf5b4436d1b43013fab9999ac.tar.gz external_llvm-9d5f45607793052bf5b4436d1b43013fab9999ac.tar.bz2 |
Revise previous patch per review comments.
Next round of x87 long double stuff.
Getting close now, basically works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index f25b113..9fc30c4 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1715,14 +1715,14 @@ void CWriter::printFloatingPointConstants(Function &F) { if (FPC->getType() == Type::DoubleTy) { double Val = FPC->getValueAPF().convertToDouble(); - uint64_t i = *FPC->getValueAPF().convertToAPInt().getRawData(); + uint64_t i = FPC->getValueAPF().convertToAPInt().getZExtValue(); Out << "static const ConstantDoubleTy FPConstant" << FPCounter++ << " = 0x" << std::hex << i << std::dec << "ULL; /* " << Val << " */\n"; } else if (FPC->getType() == Type::FloatTy) { float Val = FPC->getValueAPF().convertToFloat(); - uint32_t i = (uint32_t)*FPC->getValueAPF().convertToAPInt(). - getRawData(); + uint32_t i = (uint32_t)FPC->getValueAPF().convertToAPInt(). + getZExtValue(); Out << "static const ConstantFloatTy FPConstant" << FPCounter++ << " = 0x" << std::hex << i << std::dec << "U; /* " << Val << " */\n"; |