Support SHF_MERGE sections in COMDATs.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 25 Feb 2015 00:52:15 +0000 (00:52 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 25 Feb 2015 00:52:15 +0000 (00:52 +0000)
commit76bdd01e0e81fc34c30417c6c1bb6e52bd506fa3
tree95af89e3413db219a29000e6a1f0193eb32f2716
parent6bc72f8262ba0679576ce01d79abe4d6564c9167
Support SHF_MERGE sections in COMDATs.

This patch unifies the comdat and non-comdat code paths. By doing this
it add missing features to the comdat side and removes the fixed
section assumptions from the non-comdat side.

In ELF there is no one true section for "4 byte mergeable" constants.
We are better off computing the required properties of the section
and asking the context for it.

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