[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)
commit2bd0221fa494b081cbff49fbb0ca98d7c2e50116
tree02932082cac36049c524234840c54c797e24d0b0
parent341ba392d96c766b7f19e9172af767dc07626a18
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239574 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/WinException.cpp
lib/Target/X86/X86WinEHState.cpp
test/CodeGen/X86/seh-finally.ll
test/CodeGen/X86/seh-safe-div-win32.ll
test/CodeGen/X86/win32-eh.ll