Displaying 2 results from an estimated 2 matches for "ourcaughtresulttype".
2012 Apr 09
0
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
...; instruction. The code it produces is more verbose, but after optimizations, code-gen typically doesn't produce a lot of code for these sequences.
I copied that bit of code from ExceptionDemo.cpp (lines 1270-1290):
> llvm::LandingPadInst *caughtResult =
> builder.CreateLandingPad(ourCaughtResultType,
> personality,
> numExceptionsToCatch,
> "landingPad");
> // ...
>
> builder.CreateStore(caughtResult, caughtResultStorage);
Then on line 1255:
> builder.CreateResume(buil...
2012 Apr 09
5
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
On Apr 8, 2012, at 8:47 AM, Paul J. Lucas wrote:
> On Apr 8, 2012, at 4:20 AM, Bill Wendling wrote:
>
>> On Apr 4, 2012, at 9:32 PM, Paul J. Lucas wrote:
>>
>>> This all seems to work just fine. I can throw a C++ exception either in a C++ object's constructor or in an ordinary member function and the stack unwinds correctly (the object's destructors are