diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-11-21 00:49:24 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-11-21 00:49:24 +0000 |
commit | bd71be4683c195260d5245118b1e13e6b2e20504 (patch) | |
tree | 90dac12c314a2d14783a41aa7ccbf9e0e251f53c /lib/CodeGen/CGObjCGNU.cpp | |
parent | 7c686661d65c63f6f518ca81830dd61bd64bfe1f (diff) |
Consolidated @try and @synchronize into a single
code gen. method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index bafac41dbf..25e3915049 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -124,12 +124,10 @@ public: virtual llvm::Function *GetPropertySetFunction(); virtual llvm::Function *EnumerationMutationFunction(); - virtual void EmitTryStmt(CodeGen::CodeGenFunction &CGF, - const ObjCAtTryStmt &S); + virtual void EmitTryOrSynchronizedStmt(CodeGen::CodeGenFunction &CGF, + const Stmt &S); virtual void EmitThrowStmt(CodeGen::CodeGenFunction &CGF, const ObjCAtThrowStmt &S); - virtual void EmitSynchronizedStmt(CodeGen::CodeGenFunction &CGF, - const ObjCAtSynchronizedStmt &S); virtual llvm::Value * EmitObjCWeakRead(CodeGen::CodeGenFunction &CGF, llvm::Value *AddrWeakObj); virtual void EmitObjCWeakAssign(CodeGen::CodeGenFunction &CGF, @@ -963,9 +961,9 @@ llvm::Function *CGObjCGNU::EnumerationMutationFunction() { return 0; } -void CGObjCGNU::EmitTryStmt(CodeGen::CodeGenFunction &CGF, - const ObjCAtTryStmt &S) { - CGF.ErrorUnsupported(&S, "@try statement"); +void CGObjCGNU::EmitTryOrSynchronizedStmt(CodeGen::CodeGenFunction &CGF, + const Stmt &S) { + CGF.ErrorUnsupported(&S, "@try/@synchronized statement"); } void CGObjCGNU::EmitThrowStmt(CodeGen::CodeGenFunction &CGF, @@ -973,11 +971,6 @@ void CGObjCGNU::EmitThrowStmt(CodeGen::CodeGenFunction &CGF, CGF.ErrorUnsupported(&S, "@throw statement"); } -void CGObjCGNU::EmitSynchronizedStmt(CodeGen::CodeGenFunction &CGF, - const ObjCAtSynchronizedStmt &S) { - CGF.ErrorUnsupported(&S, "@synchronized statement"); -} - llvm::Value * CGObjCGNU::EmitObjCWeakRead(CodeGen::CodeGenFunction &CGF, llvm::Value *AddrWeakObj) { |