Don't create new comdats in CodeGen.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 14 Jan 2015 20:55:48 +0000 (20:55 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 14 Jan 2015 20:55:48 +0000 (20:55 +0000)
commit33f5127540aa151e2611b82c7590276ab8a48cb8
treef9080d35c04bf4d4aa0816cf39632db5c0924dbc
parentf7db2526adfbfd42622c970ca01c5131f2168b7c
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@226038 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]