projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dde2af
)
Update ExceptionDemo for exception handling API changes (personality function call...
author
David Blaikie
<dblaikie@gmail.com>
Fri, 14 Aug 2015 00:37:16 +0000
(
00:37
+0000)
committer
David Blaikie
<dblaikie@gmail.com>
Fri, 14 Aug 2015 00:37:16 +0000
(
00:37
+0000)
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
examples/ExceptionDemo/ExceptionDemo.cpp
patch
|
blob
|
history
diff --git
a/examples/ExceptionDemo/ExceptionDemo.cpp
b/examples/ExceptionDemo/ExceptionDemo.cpp
index 5043a656d4c8a19e3dc2a6e16b8cbc36a6a6ce04..506f322603f1ee14ea121a46d49958beed80d7f0 100644
(file)
--- 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");