How to use BasicBlock to response the segmentation fault in generated code

I need to use one BasicBlock to deal with the segmentation fault in
JIT function. But how to jump
one BasicBlock when segmentation fault triggered in the JIT? Just
like register a BasicBlock
as a signal handler .

Thanks
MK

I am not sure what you mean "segmentation fault triggered in the JIT",
maybe you're looking for JITEventListener?

Regards,
chenwj

[1] http://llvm.org/docs/doxygen/html/classllvm_1_1JITEventListener.html