[LLVMdev] LLVM Exception Handling

Renato Golin rengolin at systemcall.org
Mon Sep 27 01:21:24 PDT 2010


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




More information about the llvm-dev mailing list