[WinEH] Use llvm.x86.seh.recoverfp in WinEHPrepare
authorReid Kleckner <reid@kleckner.net>
Wed, 1 Jul 2015 20:59:25 +0000 (20:59 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 1 Jul 2015 20:59:25 +0000 (20:59 +0000)
commit8a1df9b25f37be9fcd33624581d5dcc05f118e06
treebc11963857bc71029524668305a6089c22a36631
parent8f2981cb401f5986c681e15dbeb2aa59cdc746af
[WinEH] Use llvm.x86.seh.recoverfp in WinEHPrepare

Don't pattern match for frontend outlined finally calls on non-x64
platforms. The 32-bit runtime uses a different funclet prototype.  Now,
the frontend is pre-outlining the finally bodies so that it ends up
doing most of the heavy lifting for variable capturing. We're just
outlining the callsite, and adapting the frameaddress(0) call to line up
the frame pointer recovery.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241186 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/WinEHPrepare.cpp