[WinEHPrepare] Turn terminatepad into a cleanuppad + call + cleanupret
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 16 Sep 2015 20:42:16 +0000 (20:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 16 Sep 2015 20:42:16 +0000 (20:42 +0000)
commitf7f5dcbad13e13f6a058e186864f7c7623a1a440
tree233d77ce33be075d00c7569deb4fdf5bf699488a
parentd199fc5aa5ba8ff892b5a4d003eee1bdd0113106
[WinEHPrepare] Turn terminatepad into a cleanuppad + call + cleanupret

The MSVC doesn't really support exception specifications so let's just
turn these into cleanuppads.  Later, we might use terminatepad to more
efficiently encode the "noexcept"-ness of a function body.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247848 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/WinEHPrepare.cpp
test/CodeGen/WinEH/wineh-no-demotion.ll