In the new EH model, setup the function context and the call site info.
authorBill Wendling <isanbard@gmail.com>
Wed, 28 Sep 2011 03:14:05 +0000 (03:14 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 28 Sep 2011 03:14:05 +0000 (03:14 +0000)
commit2b6bd7ba5819d8c73c89291c6de89a86dbbffe9c
tree68c8c7dfaa7f0b4cb589bec1b82e248ce17651d0
parent4b6736bdb02e21e4611522d033247f015aa6c4aa
In the new EH model, setup the function context and the call site info.

The DWARF exception pass uses the call site information, which is set up here. A
pre-RA pass is too late for it to use this information. So create and setup the
function context here, and then insert the call site values here (and map the
call sites for the DWARF EH pass). This is simpler than the original pass, and
doesn't make the CFG lose its SSA-ness.

It's a win-win-win-win-lose-win-win situation.

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