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/CGObjC.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/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 7242d01adb..b5834e68e5 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -471,4 +471,14 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S) EmitBlock(LoopEnd); } +void CodeGenFunction::EmitObjCAtTryStmt(const ObjCAtTryStmt &S) +{ + CGM.getObjCRuntime().EmitTryStmt(*this, S); +} + +void CodeGenFunction::EmitObjCAtThrowStmt(const ObjCAtThrowStmt &S) +{ + CGM.getObjCRuntime().EmitThrowStmt(*this, S); +} + CGObjCRuntime::~CGObjCRuntime() {} |