Implement unique sections with an unique ID.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 4 Apr 2015 18:02:01 +0000 (18:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 4 Apr 2015 18:02:01 +0000 (18:02 +0000)
commit903f4a20512b454212d6275677d71e3fab894106
tree4b24d74d17158fa2a3ed862664b482685a53618a
parentffcb79bea1d3e22eb13795a8bc05add22673714e
Implement unique sections with an unique ID.

This allows the compiler/assembly programmer to switch back to a
section. This in turn fixes the bootstrap failure on powerpc (tested
on gcc110) without changing the ppc codegen at all.

I will try to cleanup the various getELFSection overloads in a  followup patch.
Just using a default argument now would lead to ambiguities.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234099 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
docs/Extensions.rst
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
include/llvm/MC/MCContext.h
include/llvm/MC/MCSection.h
include/llvm/MC/MCSectionCOFF.h
include/llvm/MC/MCSectionELF.h
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/MC/MCContext.cpp
lib/MC/MCParser/ELFAsmParser.cpp
lib/MC/MCSectionELF.cpp
lib/MC/MCSectionMachO.cpp
lib/MC/MCStreamer.cpp
lib/Target/NVPTX/NVPTXSection.h
test/CodeGen/X86/global-sections-comdat.ll
test/MC/ELF/section-unique-err1.s [new file with mode: 0644]
test/MC/ELF/section-unique-err2.s [new file with mode: 0644]
test/MC/ELF/section-unique-err3.s [new file with mode: 0644]
test/MC/ELF/section-unique.s