From: David Blaikie Date: Fri, 14 Aug 2015 00:37:16 +0000 (+0000) Subject: Update ExceptionDemo for exception handling API changes (personality function call... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=329f95975fd886a59e84d80bb82f951202acaa0e;p=oota-llvm.git 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 --- diff --git a/examples/ExceptionDemo/ExceptionDemo.cpp b/examples/ExceptionDemo/ExceptionDemo.cpp index 5043a656d4c..506f322603f 100644 --- a/examples/ExceptionDemo/ExceptionDemo.cpp +++ b/examples/ExceptionDemo/ExceptionDemo.cpp @@ -1265,10 +1265,10 @@ static llvm::Function *createCatchWrappedInvokeFunction( builder.SetInsertPoint(exceptionBlock); llvm::Function *personality = module.getFunction("ourPersonality"); + ret->setPersonalityFn(personality); llvm::LandingPadInst *caughtResult = builder.CreateLandingPad(ourCaughtResultType, - personality, numExceptionsToCatch, "landingPad");