]> granicus.if.org Git - llvm/commit
[WinEH] Recognize SEH finally block inserted by the frontend
authorReid Kleckner <reid@kleckner.net>
Fri, 10 Apr 2015 23:12:29 +0000 (23:12 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 10 Apr 2015 23:12:29 +0000 (23:12 +0000)
commitc127686d0e2afd7d345e337f71d8b5f3be6dc03b
treef08846c76ce506b897dfe3500d439c6553403ff1
parent4cc199a0de8a88f7b4f3390d72c9aefae7330603
[WinEH] Recognize SEH finally block inserted by the frontend

This allows winehprepare to build sensible llvm.eh.actions calls for SEH
finally blocks.  The pattern matching in this change is brittle and
should be replaced with something more robust soon.  In the meantime,
this will let us write the code that produces __C_specific_handler xdata
tables, which we need regardless of how we decide to get finally blocks
through EH preparation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234663 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/WinEHPrepare.cpp
test/CodeGen/WinEH/seh-outlined-finally.ll [new file with mode: 0644]