[LLVMdev] x86 unwind support[MESSAGE NOT SCANNED]

Duncan Sands baldrick at free.fr
Mon Jul 20 10:12:11 PDT 2009


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.



More information about the llvm-dev mailing list