[LLVMdev] x86 unwind support[MESSAGE NOT SCANNED]

Duncan Sands
Mon, 20 Jul 2009 17:12:11 -0000

Hi Kenneth,

> Is there anything in the current codebase that maps an "unwind"
> instruction to a DWARF unnwinder?  Seeing as how (I think) the DWARF
> info is already compiled in, this would be a useful thing.

in llvm from svn an "unwind" instruction is mapped to a call to
_Unwind_Resume.  This is no good for throwing a new dwarf exception,
but it does mean that you can now implement cleanups as:

   invoke XYZ to label %normal unwind label %cleanup
cleanup:
   do_stuff
   unwind

Ciao,

Duncan.