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)
commit3135ba9b381aa010a98c7a3b48c9d2338783d480
tree2bd4ad552f85f109a481a81e7607b2f9e0917db7
parenta98a3be2c49c04bca67a65a46d8e5fa65adc0f68
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.

llvm-svn: 254988
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/ARM/constants.ll
llvm/test/CodeGen/Mips/sitofp-selectcc-opt.ll
llvm/test/CodeGen/X86/copysign-constant-magnitude.ll
llvm/test/CodeGen/X86/fadd-combines.ll
llvm/test/CodeGen/X86/fmul-combines.ll
llvm/test/CodeGen/X86/vec_uint_to_fp-fastmath.ll
llvm/test/CodeGen/X86/vec_uint_to_fp.ll
llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll