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)
commitf0a0d578089572be37063bbe37063edb28148159
tree042e40f699834b367513c66d4e8e7b85bd460946
parentbf6f1f2a32142f4e262a706940750094407f050d
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189309 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