[LLVMdev] x86 unwind support[MESSAGE NOT SCANNED]

Duncan Sands
2009-07-21T12:01:32Z

Hi Andrew,

> pthread_cleanup_pop() is nothing special, it's just an example of a
> cleanup handler.  Cleanups are very similar to exception handlers, but
> with one small difference: they do some work and then call
> _Unwind_Resume() which continues unwinding.  The unwinder itself
> doesn't know anything about pthread cleanups, it just executes
> whatever is at the landing pad.

cleanups are turned into invoke + (cleanup code) + _Unwind_Resume by
llvm-gcc.

Ciao,

Duncan.