Add r228980 back.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Feb 2015 20:48:01 +0000 (20:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Feb 2015 20:48:01 +0000 (20:48 +0000)
commite0a2541eb722cafcde99325456ca468a1c2d2e96
tree746250722cf3953d81886300a07939237134db4b
parent84f0507260be95e35a06e9ba051e48e5950caed2
Add r228980 back.

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@229541 91177308-0d34-0410-b5e6-96231b3b80d8
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