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)
commit12ca34f53ff8449283fc6a0e1c6ab1f739f3158f
tree7111e41e96418557739ded39df43dfda8ea85583
parentcc5e40811b1572b0a1d19ab370cabf1efe6c4f39
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
15 files changed:
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/Target/XCore/XCoreAsmPrinter.cpp
llvm/test/Bitcode/linkage-types-3.2.ll
llvm/test/CodeGen/ARM/odr_comdat.ll [deleted file]
llvm/test/CodeGen/ARM/section-name.ll
llvm/test/CodeGen/X86/dllexport-x86_64.ll
llvm/test/CodeGen/X86/dllexport.ll
llvm/test/CodeGen/X86/global-sections.ll
llvm/test/CodeGen/X86/odr_comdat.ll [deleted file]
llvm/test/CodeGen/X86/pic_jumptable.ll
llvm/test/MC/COFF/bss_section.ll
llvm/test/MC/COFF/const-gv-with-rel-init.ll
llvm/test/MC/COFF/weak-symbol.ll [deleted file]