[COFF] Fix constant sharing regression for MinGW
authorMartin Storsjo <martin@martin.st>
Thu, 28 Jun 2018 20:28:29 +0000 (20:28 +0000)
committerMartin Storsjo <martin@martin.st>
Thu, 28 Jun 2018 20:28:29 +0000 (20:28 +0000)
commit2a9bd7b75699c3507c69ccd55d1bcc810807c351
tree6d0f8f8430b5af579e89b4c52d767af1bdd241aa
parente52b75297336b81638484cd800394b480b0f67db
[COFF] Fix constant sharing regression for MinGW

This fixes a regression since SVN r334523, where the object files
built targeting MinGW were rejected by GNU binutils tools. Prior to
that commit, we only put constants in comdat for MSVC configurations.

Differential Revision: https://reviews.llvm.org/D48567

llvm-svn: 335918
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/CodeGen/X86/win_cst_pool.ll