summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-02-10 18:49:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-02-10 18:49:11 +0000
commit3241d400c86cf49e243643fdce3a408838754717 (patch)
treeb94a16b52e5a74d7576a8374fc1769387ca15251 /clang/lib/CodeGen/CGObjCMac.cpp
parent535fdaf0201487ce2e7b9a1c12643bdf55173b36 (diff)
downloadbcm5719-llvm-3241d400c86cf49e243643fdce3a408838754717.tar.gz
bcm5719-llvm-3241d400c86cf49e243643fdce3a408838754717.zip
Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixes
calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. llvm-svn: 95787
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 2f931bd637a..b0b1a9fe7cf 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -738,7 +738,8 @@ public:
return CGM.CreateRuntimeFunction(
llvm::FunctionType::get(llvm::Type::getVoidTy(VMContext),
Params, false),
- "_Unwind_Resume_or_Rethrow");
+ (CGM.getLangOptions().SjLjExceptions ? "_Unwind_SjLj_Resume" :
+ "_Unwind_Resume_or_Rethrow"));
}
llvm::Constant *getObjCEndCatchFn() {
OpenPOWER on IntegriCloud