[WinEH] Put finally pointers in the handler scope table field
authorReid Kleckner <reid@kleckner.net>
Thu, 11 Jun 2015 23:37:18 +0000 (23:37 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 11 Jun 2015 23:37:18 +0000 (23:37 +0000)
commit81d1cc00b7d6de7303deb31ab8569ff3fa4abf56
tree22a47dcad0b233cdf40fea05a33a8f8bba27cde5
parentb5aee61c3617b726245182b48df8ab573d75d1a9
[WinEH] Put finally pointers in the handler scope table field

We were putting them in the filter field, which is correct for 64-bit
but wrong for 32-bit.

Also switch the order of scope table entry emission so outermost entries
are emitted first, and fix an obvious state assignment bug.

llvm-svn: 239574
llvm/lib/CodeGen/AsmPrinter/WinException.cpp
llvm/lib/Target/X86/X86WinEHState.cpp
llvm/test/CodeGen/X86/seh-finally.ll
llvm/test/CodeGen/X86/seh-safe-div-win32.ll
llvm/test/CodeGen/X86/win32-eh.ll