[COFF] Fix constant sharing regression for MinGW
commitd628d72dc94fa43bb82606d0730cb3b1787db0aa
authorMartin Storsjo <martin@martin.st>
Thu, 28 Jun 2018 20:28:29 +0000 (28 20:28 +0000)
committerMartin Storsjo <martin@martin.st>
Thu, 28 Jun 2018 20:28:29 +0000 (28 20:28 +0000)
tree1080b4f1d34737096d18d73a254a90e40f854b1f
parentc8bdc2e03392d94a82f557f74ede996c3465a981
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335918 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/X86/win_cst_pool.ll