[cfe-dev] Microsoft C++ exception handling.

r4start r4start at gmail.com
Fri Jul 27 23:47:10 PDT 2012


On 27/07/2012 21:43, João Matos wrote:
> I just learned about the inreg LLVM parameter attribute, which seems 
> to do this.
>
> declare external
> void @___CxxFrameHandler3(i32* inreg nocapture) nounwind
>
> @EHFuncInfo = global i32 0, align 4
>
> define void @main() {
>   tail call void @___CxxFrameHandler3(i32* @EHFuncInfo)
>   ret void
> }
>
> generates:
>
> _main:                                  # @main
>         movl    $_EHFuncInfo, %eax
>         jmp     ____CxxFrameHandler3    # TAILCALL
>
> -- 
> João Matos
Thnaks, this is what I need.

  - Dmitry Sokolov.



More information about the cfe-dev mailing list