[LLVMdev] Exception handling question

Duncan Sands baldrick at free.fr
Fri Jan 22 00:26:00 PST 2010

Hi Bill,

> I think you'll need a "i8* null" at the end of this 
> @llvm.eh.selector.i64 call.

that is what you would do if (1) you were using the C++ personality function,
and (2) you want invoke to have correct LLVM semantics (i.e. invoke always
branches to the landing pad if an exception is unwinding through it).  Using
a selector with no catch info, like this one, should result in a cleanup entry
going in the dwarf eh table and the personality function being recorded IIRC.
This may be all that is needed for a personality function that works differently
to the C++ one.



More information about the llvm-dev mailing list