[llvm-commits] [patch] Change how we handle mandatory unwind tables

Duncan Sands baldrick at free.fr
Tue May 24 01:21:58 PDT 2011


Hi Rafael,

> One way to fix this would be to move the logic from Clang's codegen to
> LLVM's codegen, but we would still have problems with:
>
> $ clang -fno-asynchronous-unwind-tables -c -emit-llvm test.c
> $ clang test.o -o test

can't this be fixed via better documentation?  I.e. explain that codegen options
don't do anything when not doing codegen (and perhaps have clang warn about
this), and that you should do this instead:

 > $ clang -c -emit-llvm test.c
 > $ clang -fno-asynchronous-unwind-tables test.o -o test

> The change to prune-eh also removes some optimization opportunities.
> Preventing adding nounwind can prevent converting an invoke to a call.

I'm confused.  What has prune-eh got to do with unwind-tables?

Ciao, Duncan.



More information about the llvm-commits mailing list