Revert "Revert Don't create new comdats in CodeGen"
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 16 Jan 2015 02:22:55 +0000 (02:22 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 16 Jan 2015 02:22:55 +0000 (02:22 +0000)
commitdfe88a08c7f595801e733d3e6f4504d2695d5309
tree8678a0d7f42f815d7179fff6c31672fe7460dd5a
parentce68afed3cd026e4879efa8fc901271f8ef2a1bd
Revert "Revert Don't create new comdats in CodeGen"

This reverts commit r226173, adding r226038 back.

No change in this commit, but clang was changed to also produce trivial comdats for
costructors, destructors and vtables 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@226242 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]