[LLVMdev] Is LLVM expressive enough to represent asynchronous exceptions?

Eric Christopher echristo at apple.com
Wed Jun 15 14:33:05 PDT 2011


On Jun 15, 2011, at 1:28 AM, Renato Golin wrote:

> On 14 June 2011 19:07, Bill Wendling <wendling at apple.com> wrote:
>> My understanding was that we support exceptions thrown from signals. The mechanism for modeling this is unknown to me (it's most likely a gcc thing and not an llvm thing).
> 
> Oh, I see. That's a slightly different matter, but still, unwinding
> makes little sense when the signal (and thus its exception) can occur
> at any time meaning anything.
> 
> This does look like a very specific feature for a very specific use
> case (which I can't fathom). ;) 

It's so that your signal handler can be written in C++ and may throw
an OOM exception.

As to who would want such a thing? No idea :)

-eric



More information about the llvm-dev mailing list