[LLVMdev] unwind/invoke design

Duncan Sands baldrick at free.fr
Mon Jun 15 12:34:21 PDT 2009


Wesley W. Terpstra wrote:
> 2009/6/15 Török Edwin <edwintorok at gmail.com>:
>> Write some C++ code into llvm.org/demo, and watch the output assembly,
> 
> That shows how to use the c++ runtime for handling c++ style
> exceptions. More useful might be an llvm implementation of
> __cxa_throw, which I could then modify. ;)

Take a look at _Unwind_RaiseException, which does the heavy
lifting in __cxa_throw.  It's part of libgcc.

Ciao,

Duncan.



More information about the llvm-dev mailing list