OSDN Git Service

[WinEH] Try to make outlining invokes work a little better
authorReid Kleckner <reid@kleckner.net>
Fri, 10 Apr 2015 16:26:42 +0000 (16:26 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 10 Apr 2015 16:26:42 +0000 (16:26 +0000)
commit10d1d8a3bd6faac2ae01e1d5b1977a46a82776cb
treef4c6251ed406ec4d7353522558b288f1b74f1c64
parentb6ee41f057ec81b3de44a71bf21c2ed531e2fc9f
[WinEH] Try to make outlining invokes work a little better

WinEH currently turns invokes into calls. Long term, we will reconsider
this, but for now, make sure we remap the operands and clone the
successors of the new terminator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234608 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/WinEHPrepare.cpp
lib/Transforms/Utils/CloneFunction.cpp
test/CodeGen/WinEH/cppeh-cleanup-invoke.ll [new file with mode: 0644]