Fix wrong code offset for unwind code SET_FPREG.
authorKai Nacke <kai.nacke@redstar.de>
Tue, 27 Aug 2013 04:16:16 +0000 (04:16 +0000)
committerKai Nacke <kai.nacke@redstar.de>
Tue, 27 Aug 2013 04:16:16 +0000 (04:16 +0000)
commit1b7e4866f41c360b85cfe74d419084550166ec7b
treeb038bd06b5e195b5a551e27e562aba01ea1e98ad
parentbc839fcd3e7830616ca4e9c687459aab886eb91e
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 Jim Grosbach, Charles Davis and Nico Rieck.

llvm-svn: 189309
llvm/lib/MC/MCStreamer.cpp
llvm/lib/MC/MCWin64EH.cpp
llvm/test/MC/COFF/seh.s
llvm/test/tools/llvm-objdump/win64-unwind-data.s