AsmPrinter: Use emitGlobalConstantFP to emit elements of constant data
authorJustin Bogner <mail@justinbogner.com>
Tue, 8 Dec 2015 02:37:48 +0000 (02:37 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 8 Dec 2015 02:37:48 +0000 (02:37 +0000)
commitcbf2c65b9e200ee1b7827171773faa1e4c399fb0
treee866226503b6c661afebd321f34a57e782ce271f
parent4609cb778ad34d55e05762b7159f3339c4054145
AsmPrinter: Use emitGlobalConstantFP to emit elements of constant data

It's strange to duplicate the logic for emitting FP values into
emitGlobalConstantDataSequential, and it's even stranger that we end
up printing the verbose assembly comments differently between the two
paths. Just call into emitGlobalConstantFP rather than crudely
duplicating its logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254988 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/ARM/constants.ll
test/CodeGen/Mips/sitofp-selectcc-opt.ll
test/CodeGen/X86/copysign-constant-magnitude.ll
test/CodeGen/X86/fadd-combines.ll
test/CodeGen/X86/fmul-combines.ll
test/CodeGen/X86/vec_uint_to_fp-fastmath.ll
test/CodeGen/X86/vec_uint_to_fp.ll
test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll