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)
commit8bc9ccc60a0ae3b38b37bf0916e27bc95e968be2
tree655a81496622b5c130e94366478bd2b1fd2c38cc
parent7b0281089e0c2e69c748ee617bd58e759bea7dbb
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.

llvm-svn: 230411
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/CodeGen/X86/global-sections-comdat.ll