Bring r226038 back.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 19 Jan 2015 15:16:06 +0000 (15:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 19 Jan 2015 15:16:06 +0000 (15:16 +0000)
commit4b678bff4ebae28ec7e04ec936cf924ee8d289df
treeaaf9b17b7ab07bd50d4cd2822388238023cc4362
parent10b853882cb337fd5d1efe03e2f7abc1133ed88e
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
15 files changed:
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/Target/XCore/XCoreAsmPrinter.cpp
test/Bitcode/linkage-types-3.2.ll
test/CodeGen/ARM/odr_comdat.ll [deleted file]
test/CodeGen/ARM/section-name.ll
test/CodeGen/X86/dllexport-x86_64.ll
test/CodeGen/X86/dllexport.ll
test/CodeGen/X86/global-sections.ll
test/CodeGen/X86/odr_comdat.ll [deleted file]
test/CodeGen/X86/pic_jumptable.ll
test/MC/COFF/bss_section.ll
test/MC/COFF/const-gv-with-rel-init.ll
test/MC/COFF/weak-symbol.ll [deleted file]