diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-01-19 15:16:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-01-19 15:16:06 +0000 |
commit | 12ca34f53ff8449283fc6a0e1c6ab1f739f3158f (patch) | |
tree | 7111e41e96418557739ded39df43dfda8ea85583 /llvm/test/CodeGen/X86/global-sections.ll | |
parent | cc5e40811b1572b0a1d19ab370cabf1efe6c4f39 (diff) | |
download | bcm5719-llvm-12ca34f53ff8449283fc6a0e1c6ab1f739f3158f.tar.gz bcm5719-llvm-12ca34f53ff8449283fc6a0e1c6ab1f739f3158f.zip |
Bring r226038 back.
No change in this commit, but clang was changed to also produce trivial comdats when
needed.
Original message:
Don't create new comdats in CodeGen.
This patch stops the implicit creation of comdats during codegen.
Clang now sets the comdat explicitly when it is required. With this patch clang and gcc
now produce the same result in pr19848.
llvm-svn: 226467
Diffstat (limited to 'llvm/test/CodeGen/X86/global-sections.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/global-sections.ll | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/global-sections.ll b/llvm/test/CodeGen/X86/global-sections.ll index fa1169d8a8e..24be27161f4 100644 --- a/llvm/test/CodeGen/X86/global-sections.ll +++ b/llvm/test/CodeGen/X86/global-sections.ll @@ -85,7 +85,6 @@ define void @F1() { @"foo bar" = linkonce global i32 42 ; LINUX: .type "foo bar",@object -; LINUX: .section ".data.foo bar","aGw",@progbits,"foo bar",comdat ; LINUX: .weak "foo bar" ; LINUX: "foo bar": @@ -98,7 +97,6 @@ define void @F1() { @G6 = weak_odr unnamed_addr constant [1 x i8] c"\01" ; LINUX: .type G6,@object -; LINUX: .section .rodata.G6,"aG",@progbits,G6,comdat ; LINUX: .weak G6 ; LINUX: G6: ; LINUX: .byte 1 |