llvm.org GIT mirror llvm / 329f959
Update ExceptionDemo for exception handling API changes (personality function call->function move) The ExceptionDemo now compiles, but doesn't link... undefined type references to various typeinfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244997 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
12641264 builder.SetInsertPoint(exceptionBlock);
12651265
12661266 llvm::Function *personality = module.getFunction("ourPersonality");
1267 ret->setPersonalityFn(personality);
12671268
12681269 llvm::LandingPadInst *caughtResult =
12691270 builder.CreateLandingPad(ourCaughtResultType,
1270 personality,
12711271 numExceptionsToCatch,
12721272 "landingPad");
12731273