Fix wrong code offset for unwind code SET_FPREG.
authorKai Nacke <kai.nacke@redstar.de>
Sat, 6 Jul 2013 17:15:36 +0000 (17:15 +0000)
committerKai Nacke <kai.nacke@redstar.de>
Sat, 6 Jul 2013 17:15:36 +0000 (17:15 +0000)
commitea434e4bca15383418ac65788fdb8bc3b5725fe2
tree11e264bbe6f2530a1d914fbad420f9896e69bb81
parent34ae5725c0e5ba7fb26fb348b079e18182c5d891
Fix wrong code offset for unwind code SET_FPREG.

The code offset for unwind code SET_FPREG is wrong because it is set
to constant 0. The fix is to do the same as for the other unwind
codes: emit a label and later the absolute difference between the
label and the begin of the prologue.
Also enables the failing test case MC/COFF/seh.s

Reviewed by Charles Davis and Nico Rieck.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185758 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCStreamer.cpp
lib/MC/MCWin64EH.cpp
test/MC/COFF/seh.s
test/tools/llvm-objdump/win64-unwind-data.s