[WinEH] Try to make the MachineFunction CFG more accurate
authorReid Kleckner <reid@kleckner.net>
Wed, 15 Apr 2015 18:48:15 +0000 (18:48 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 15 Apr 2015 18:48:15 +0000 (18:48 +0000)
commit192537c4f3530c781521b90990f64086267817ed
treeec44533f9687fc42e8215f6f1b4d9a751c7ff99d
parenta1c91277c445c3a9d9101629d157af4c6a9b46b0
[WinEH] Try to make the MachineFunction CFG more accurate

This avoids emitting code for unreachable landingpad blocks that contain
calls to llvm.eh.actions and indirectbr.

It's also a first step towards unifying the SEH and WinEH lowering
codepaths. I'm keeping the old fan-in lowering of SEH around until the
preparation version works well enough that we can switch over without
breaking existing users.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235037 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/Win64Exception.cpp
lib/CodeGen/MachineModuleInfo.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/WinEH/cppeh-prepared-catch.ll