Close unique sections when switching away from them.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Mar 2015 15:01:40 +0000 (15:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Mar 2015 15:01:40 +0000 (15:01 +0000)
commit121eb4257d30348fadb3c4aaab0e9cc41c4588e1
tree5ab2c001dd18ba809227520e767d275493319a94
parent407da8c267d7cc6905ffc0fc425676b80324d813
Close unique sections when switching away from them.

It is not possible to switch back to unique secitons, so close them
automatically when switching away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233380 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSection.h
include/llvm/MC/MCSectionCOFF.h
include/llvm/MC/MCSectionELF.h
lib/MC/MCSectionMachO.cpp
lib/MC/MCStreamer.cpp
lib/Target/NVPTX/NVPTXSection.h
test/CodeGen/X86/global-sections-comdat.ll