[llvm-commits] [Patch] DwarfEHPrepare for New EH

Duncan Sands baldrick at free.fr
Mon Aug 8 08:15:14 PDT 2011


Hi Bill,

> This patch implements the small amount which needs to be done by the DwarfEHPrepare pass. What it does is takes the 'resume' instruction and converts it into a call to _Unwind_Resume. The SjLj changes will be done in the SjLj lowering pass.

why do this in DwarfEHPrepare (which should be zapped in the long run I guess)?
Shouldn't it be lowered in SelectionDAGBuilder like other instructions are?
Also, it should probably be turned into a RESUME SDag Node, so that different
targets can be different things with it (eg: ARM doesn't want _Unwind_Resume
IIRC).

Ciao, Duncan.



More information about the llvm-commits mailing list