[LLVMdev] LLVM Exception Handling

Nathan Jeffords blunted2night at gmail.com
Mon Sep 27 10:24:55 PDT 2010


yea, I think it would go


invoke @method(i32 %arg)
  ret to label %success_branch
unwind i8* %exception_pointer to label %error_branch


On Mon, Sep 27, 2010 at 1:21 AM, Renato Golin <rengolin at systemcall.org>wrote:

> On 27 September 2010 01:12, Nathan Jeffords <blunted2night at gmail.com>
> wrote:
> > How about this syntax:
> > invoke @method(i32 %arg)
> >   ret i32 %return_value to label %success_branch
> > unwind i8* %exception_pointer to label %error_branch
> > this makes the instruction self consistent, and self documenting
>
> I like it.
>
> What if the function returns void? Would you omit the whole type+value?
>
> --
> cheers,
> --renato
>
> http://systemcall.org/
>
> Reclaim your digital rights, eliminate DRM, learn more at
> http://www.defectivebydesign.org/what_is_drm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100927/a56ce451/attachment.html>


More information about the llvm-dev mailing list