Put jump tables in unique sections on COFF.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 11 Mar 2015 19:58:37 +0000 (19:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 11 Mar 2015 19:58:37 +0000 (19:58 +0000)
commit0c78583bf68e26f48622b20f3f9715ac341cec08
tree7f0de77e425b4acced7aadc201c668ebf61e06e4
parent52f83a9ab3a02b523035044f04702a430570771a
Put jump tables in unique sections on COFF.

If a function is going in an unique section (because of -ffunction-sections
for example), putting a jump table in .rodata will keep .rodata alive and
that will keep alive any other function that also has a jump table.

Instead, put the jump table in a unique section that is associated with the
function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231961 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/X86/global-sections.ll