[LLVMdev] setjmp/longjmp exception handling: how?

Nicolas Ojeda Bar N.Ojeda.Bar at dpmms.cam.ac.uk
Fri Jul 12 09:09:13 PDT 2013


Dear list,

I want to add SJLJ exception handling to my frontend. Unfortunately,
there doesn't seem to be any examples in the documentation as to how
to use the intrinsics

@llvm.eh.sjlj.setjmp
@llvm.eh.sjlj.longjmp
@llvm.eh.sjlj.lsda
@llvm.eh.sjlj.callsite

Is there a way to force Clang to use SJLJ exception handling for C++? That
way I would be able to look at its output to learn how to use them correctly.

Otherwise, how should I go about finding out how to implement SJLJ exception
handling in my frontend?

Thanks!
Nicolas



More information about the llvm-dev mailing list