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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-01-19 15:16:06 +00:00
parent 10b853882c
commit 4b678bff4e
15 changed files with 63 additions and 137 deletions

View File

@@ -16,7 +16,7 @@ entry:
ret void
}
; CHECK: .section .text.test3,"axG",%progbits,test3,comdat
; CHECK: .text
; CHECK: .weak test3
; CHECK: .type test3,%function
define linkonce_odr void @test3() {