diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-15 21:26:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-15 21:26:17 +0000 |
commit | 10cac6f7115b59a466bb8d2d51cdddeb38aadc37 (patch) | |
tree | 07a049c3bd97dc50b2ca21febdbf903f50c0a3c7 /lib/CodeGen/CGObjCGNU.cpp | |
parent | 5a9a457ecf66343ae8b64baa7909007837b2a2cd (diff) |
Start implementing support for @synchonized with the darwin ObjC API.
Patch by Fariborz!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index 4afbf3c2fb..4726be2115 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -128,6 +128,8 @@ public: const ObjCAtTryStmt &S); virtual void EmitThrowStmt(CodeGen::CodeGenFunction &CGF, const ObjCAtThrowStmt &S); + virtual void EmitSynchronizedStmt(CodeGen::CodeGenFunction &CGF, + const ObjCAtSynchronizedStmt &S); }; } // end anonymous namespace @@ -961,6 +963,11 @@ 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"); +} + CodeGen::CGObjCRuntime *CodeGen::CreateGNUObjCRuntime(CodeGen::CodeGenModule &CGM){ return new CGObjCGNU(CGM); } |