Don' try to make sections in comdats SHF_MERGE.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 4 Feb 2015 21:27:24 +0000 (21:27 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 4 Feb 2015 21:27:24 +0000 (21:27 +0000)
commite247dd28399445d4e65089f4c47883230bb1ecf0
tree9b4983e40a80de58fdb2230cc6b87d9e523a3c47
parent54a6137379f599f7b46ffa8db14ca14435d80431
Don' try to make sections in comdats SHF_MERGE.

Parts of llvm were not expecting it and we wouldn't print
the entity size of the section.

Given what comdats are used for, having SHF_MERGE sections would be
just a small improvement, so just disable it for now.

Fixes pr22463.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228196 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/X86/global-sections-comdat.ll [new file with mode: 0644]