From 028084efe5a297af30f17ab0f82d3bf86199372f Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 12 Sep 2007 03:30:33 +0000 Subject: Revise previous patch per review comments. Next round of x87 long double stuff. Getting close now, basically works. llvm-svn: 41875 --- llvm/lib/Target/MSIL/MSILWriter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Target/MSIL/MSILWriter.cpp') diff --git a/llvm/lib/Target/MSIL/MSILWriter.cpp b/llvm/lib/Target/MSIL/MSILWriter.cpp index cd67df17a6f..5d6740bd1e8 100644 --- a/llvm/lib/Target/MSIL/MSILWriter.cpp +++ b/llvm/lib/Target/MSIL/MSILWriter.cpp @@ -428,10 +428,10 @@ void MSILWriter::printConstLoad(const Constant* C) { uint64_t X; unsigned Size; if (FP->getType()->getTypeID()==Type::FloatTyID) { - X = (uint32_t)*FP->getValueAPF().convertToAPInt().getRawData(); + X = (uint32_t)FP->getValueAPF().convertToAPInt().getZExtValue(); Size = 4; } else { - X = *FP->getValueAPF().convertToAPInt().getRawData(); + X = FP->getValueAPF().convertToAPInt().getZExtValue(); Size = 8; } Out << "\tldc.r" << Size << "\t( " << utohexstr(X) << ')'; @@ -1473,10 +1473,10 @@ void MSILWriter::printStaticConstant(const Constant* C, uint64_t& Offset) { const ConstantFP* FP = cast(C); if (Ty->getTypeID() == Type::FloatTyID) Out << "int32 (" << - (uint32_t)*FP->getValueAPF().convertToAPInt().getRawData() << ')'; + (uint32_t)FP->getValueAPF().convertToAPInt().getZExtValue() << ')'; else Out << "int64 (" << - *FP->getValueAPF().convertToAPInt().getRawData() << ')'; + FP->getValueAPF().convertToAPInt().getZExtValue() << ')'; break; } case Type::ArrayTyID: -- cgit v1.2.3