Fix Windows unwind info for functions in sections other than .text
authorReid Kleckner <reid@kleckner.net>
Mon, 22 Dec 2014 22:10:08 +0000 (22:10 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 22 Dec 2014 22:10:08 +0000 (22:10 +0000)
commita834d6a4bba7433473fb28ac95083493c225dfd3
tree34ffddeea4aa493aec5698989b7fb5fb3b84cc8f
parent9c0a115fbed09bd85f07e6459b77a155d4d46813
Fix Windows unwind info for functions in sections other than .text

Previously we assumed the section name had the form .text$foo, which is
what we used to do for inline functions. If the dollar wasn't present,
we'd put unwind data in the .pdata and .xdata sections for the main
.text section, which is incorrect.

Fixes PR22001.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224738 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCWinEH.cpp
test/MC/COFF/seh-section.s