Skip to content
  • John McCall's avatar
    Implement and document the llvm.eh.resume intrinsic, which is · 046c47e9
    John McCall authored
    transformed by the inliner into a branch to the enclosing landing pad
    (when inlined through an invoke).  If not so optimized, it is lowered
    DWARF EH preparation into a call to _Unwind_Resume (or _Unwind_SjLj_Resume
    as appropriate).  Its chief advantage is that it takes both the
    exception value and the selector value as arguments, meaning that there
    is zero effort in recovering these;  however, the frontend is required
    to pass these down, which is not actually particularly difficult.
    
    Also document the behavior of landing pads a bit better, and make it
    clearer that it's okay that personality functions don't always land at
    landing pads.  This is just a fact of life.  Don't write optimizations that
    rely on pushing things over an unwind edge.
    
    llvm-svn: 132253
    046c47e9
Loading