]> granicus.if.org Git - llvm/commit
Add support for having multiple sections with the same name and comdat.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 12 Feb 2015 23:29:51 +0000 (23:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 12 Feb 2015 23:29:51 +0000 (23:29 +0000)
commit2fa06b171b46b478c1c655995c9f1afe1f6ffd9b
tree91c6cb750df23846c0910702f713180d5df2f5ff
parent73a92d513697a98cf773838af8cdd6a2ace7bcba
Add support for having multiple sections with the same name and comdat.

Using this in combination with -ffunction-sections allows LLVM to output a .o
file with mulitple sections named .text. This saves space by avoiding long
unique names of the form .text.<C++ mangled name>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228980 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/CodeGen/CommandFlags.h
include/llvm/MC/MCContext.h
include/llvm/MC/MCSectionELF.h
include/llvm/Target/TargetMachine.h
include/llvm/Target/TargetOptions.h
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/MC/ELFObjectWriter.cpp
lib/MC/MCContext.cpp
lib/MC/MCParser/ELFAsmParser.cpp
lib/MC/MCSectionELF.cpp
test/CodeGen/X86/non-unique-sections.ll [new file with mode: 0644]
test/MC/ELF/section-unique.s [new file with mode: 0644]