diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-02-25 00:52:15 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-02-25 00:52:15 +0000 |
| commit | 8bc9ccc60a0ae3b38b37bf0916e27bc95e968be2 (patch) | |
| tree | 655a81496622b5c130e94366478bd2b1fd2c38cc /llvm/test/CodeGen/X86/global-sections-comdat.ll | |
| parent | 7b0281089e0c2e69c748ee617bd58e759bea7dbb (diff) | |
| download | bcm5719-llvm-8bc9ccc60a0ae3b38b37bf0916e27bc95e968be2.tar.gz bcm5719-llvm-8bc9ccc60a0ae3b38b37bf0916e27bc95e968be2.zip | |
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
Diffstat (limited to 'llvm/test/CodeGen/X86/global-sections-comdat.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/global-sections-comdat.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/global-sections-comdat.ll b/llvm/test/CodeGen/X86/global-sections-comdat.ll index 7b4d74c2a33..730050dda5f 100644 --- a/llvm/test/CodeGen/X86/global-sections-comdat.ll +++ b/llvm/test/CodeGen/X86/global-sections-comdat.ll @@ -41,6 +41,6 @@ bb5: $G16 = comdat any @G16 = unnamed_addr constant i32 42, comdat -; LINUX: .section .rodata.G16,"aG",@progbits,G16,comdat -; LINUX-SECTIONS: .section .rodata.G16,"aG",@progbits,G16,comdat -; LINUX-SECTIONS-SHORT: .section .rodata,"aG",@progbits,G16,comdat +; LINUX: .section .rodata.cst4.G16,"aGM",@progbits,4,G16,comdat +; LINUX-SECTIONS: .section .rodata.cst4.G16,"aGM",@progbits,4,G16,comdat +; LINUX-SECTIONS-SHORT: .section .rodata.cst4,"aGM",@progbits,4,G16,comdat |

