Add inlining for the new EH scheme.
authorBill Wendling <isanbard@gmail.com>
Sun, 14 Aug 2011 08:01:36 +0000 (08:01 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 14 Aug 2011 08:01:36 +0000 (08:01 +0000)
commitfe7a071a19ca6781c774c392c82341bdf14df104
treec890ac50f0117aa36d1e4cbc0b5f5b09f38686be
parent28b84ff4cec5bf2de4c1f85b85d613818175c4d4
Add inlining for the new EH scheme.

This builds off of the current scheme, but instead of llvm.eh.exception and
llvm.eh.selector, it uses the landingpad instruction. And instead of
llvm.eh.resume, it uses the resume instruction.

Because of the invariants in the landing pad instruction, a lot of code that's
currently needed to find the appropriate intrinsic calls for an invoke
instruction won't be needed once we go to the new EH scheme. The "FIXME"s tell
us what to remove after we switch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137576 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp