From b0e94241dd36060cc325bf08c58299e94a95d662 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 3 Feb 2010 00:36:40 +0000 Subject: [PATCH] Print FPImm a less kludgy way; APFloat.toString seems to have some problems anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95171 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmPrinter/X86MCInstLower.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp b/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp index 40b1f7bd0de..1c0e63e4d11 100644 --- a/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp +++ b/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp @@ -440,12 +440,9 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) { } else if (MI->getOperand(0).getType()==MachineOperand::MO_FPImmediate) { // This is more naturally done in printOperand, but since the only use // of such an operand is in this comment and that is temporary, we - // prefer to keep this mess localized. - SmallVectorImpl Str(20); - APFloat APF = MI->getOperand(0).getFPImm()->getValueAPF(); - APF.toString(Str, 0, 0); - for (unsigned i=0; igetOperand(0).print(O, &TM); } else printOperand(MI, 0); } else { -- 2.34.1