diff options
author | Anders Carlsson <andersca@mac.com> | 2008-09-09 10:04:29 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-09-09 10:04:29 +0000 |
commit | 64d5d6c5903157c521af496479d06dc26032d718 (patch) | |
tree | 268b2cfd071ba63dfbbee172c5579b056c279007 /lib/CodeGen/CGObjCGNU.cpp | |
parent | e01c2c9e072ed46ff791c8e9fb859786c6dae96e (diff) |
Move handling of @try and @throw to the runtime class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index 2bbbb46cd0..2641d9d8bd 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -122,6 +122,11 @@ public: virtual void GenerateProtocol(const ObjCProtocolDecl *PD); virtual llvm::Function *ModuleInitFunction(); virtual llvm::Function *EnumerationMutationFunction(); + + virtual void EmitTryStmt(CodeGen::CodeGenFunction &CGF, + const ObjCAtTryStmt &S); + virtual void EmitThrowStmt(CodeGen::CodeGenFunction &CGF, + const ObjCAtThrowStmt &S); }; } // end anonymous namespace @@ -967,6 +972,18 @@ llvm::Function *CGObjCGNU::EnumerationMutationFunction() return 0; } +void CGObjCGNU::EmitTryStmt(CodeGen::CodeGenFunction &CGF, + const ObjCAtTryStmt &S) +{ + CGF.ErrorUnsupported(&S, "@try statement"); +} + +void CGObjCGNU::EmitThrowStmt(CodeGen::CodeGenFunction &CGF, + const ObjCAtThrowStmt &S) +{ + CGF.ErrorUnsupported(&S, "@throw statement"); +} + CodeGen::CGObjCRuntime *CodeGen::CreateGNUObjCRuntime(CodeGen::CodeGenModule &CGM){ return new CGObjCGNU(CGM); } |