diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-06-22 20:21:51 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-06-22 20:21:51 +0000 |
commit | 9d96bce991048fd2337cf058ec6a6a722207cbf2 (patch) | |
tree | d27de93cfae46f202f68d40e9d9d00bfdde78c5c /lib/CodeGen/CGObjCGNU.cpp | |
parent | 0d9106fc97cde979a995e26b18bcd2643f8afb55 (diff) |
Alloa catching Objective-C id's being thrown with C++ throw
in Darwin's fragile abi mode. // rdar://8940528
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index 6a711bff55..ed194d9c91 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -438,7 +438,7 @@ public: bool lval = false); virtual llvm::Value *GetSelector(CGBuilderTy &Builder, const ObjCMethodDecl *Method); - virtual llvm::Constant *GetEHType(QualType T); + virtual llvm::Constant *GetEHType(QualType T, const CodeGenFunction *CGF=0); virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, const ObjCContainerDecl *CD); @@ -832,7 +832,7 @@ llvm::Value *CGObjCGNU::GetSelector(CGBuilderTy &Builder, const ObjCMethodDecl return GetSelector(Builder, Method->getSelector(), SelTypes, false); } -llvm::Constant *CGObjCGNU::GetEHType(QualType T) { +llvm::Constant *CGObjCGNU::GetEHType(QualType T, const CodeGenFunction *CGF) { if (!CGM.getLangOptions().CPlusPlus) { if (T->isObjCIdType() || T->isObjCQualifiedIdType()) { |