[LLVMdev] Turning on exception handling codegen

Bill Wendling isanbard at gmail.com
Fri Aug 24 14:05:04 PDT 2007


Hi Jonas,

> > this is the darwin assembler that barfs, right?  It looks like it
> > doesn't
> > like the way the personality function is output in the assembler.
> > If so,
> > you should see exactly the same problem with llvm-gcc-4.0 for any code
> > containing eh constructs.  I think Anton is the guy to look into
> > this (CC'd).
>
> In my experience, you can work around this sort of errors on Darwin
> using the following trick (also employed by gcc normally):
>
>         .set L$set$4,Lj93-Lj95
>          .long   L$set$4
>
> (the .set can also come after the use of the set expression). I've
> never really understood the reason for the requirement of this detour.
>
That got the assembler to accept it. I'll fix the asm printer and see
if that will get EH on Darwin to work.

Thanks!
-bw



More information about the llvm-dev mailing list