From 1eab052a7fb49194eb9a8d3c545975cccd3a1e1a Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 10 Jan 2013 19:02:56 +0000 Subject: objectiveC++: When throwing c++ exception of an objectiveC object, use objc_exception_throw to raise the exception. // rdar://12605907 llvm-svn: 172091 --- clang/lib/CodeGen/CGObjCRuntime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGObjCRuntime.h') diff --git a/clang/lib/CodeGen/CGObjCRuntime.h b/clang/lib/CodeGen/CGObjCRuntime.h index 584bf6738f0..cbd255d7ff8 100644 --- a/clang/lib/CodeGen/CGObjCRuntime.h +++ b/clang/lib/CodeGen/CGObjCRuntime.h @@ -235,7 +235,8 @@ public: virtual void EmitTryStmt(CodeGen::CodeGenFunction &CGF, const ObjCAtTryStmt &S) = 0; virtual void EmitThrowStmt(CodeGen::CodeGenFunction &CGF, - const ObjCAtThrowStmt &S) = 0; + const ObjCAtThrowStmt &S, + bool ClearInsertionPoint=true) = 0; virtual llvm::Value *EmitObjCWeakRead(CodeGen::CodeGenFunction &CGF, llvm::Value *AddrWeakObj) = 0; virtual void EmitObjCWeakAssign(CodeGen::CodeGenFunction &CGF, -- cgit v1.2.3