[LLVMdev] x86 unwind support[MESSAGE NOT SCANNED]

Andrew Haley aph at redhat.com
Tue Jul 21 07:34:53 PDT 2009

Duncan Sands wrote:

>> 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.

Yes.  Wasn't that obvious?  Sorry, I don't understand what point you're
trying to make.


More information about the llvm-dev mailing list