aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-10 06:07:49 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-10 06:07:49 +0000
commitfa1f756f88f4e6f3da2673082fdc1e8f54bccd6f (patch)
tree5e1c3937ca91e77b534491abb12e46d843091558 /lib/CodeGen/CGObjCMac.cpp
parente4b6d342c29d5cb9d311756100df1603810fa892 (diff)
Remove the last remnants of the Obj-C EH stack code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 9d9da72268..275bdf7a7c 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -2086,36 +2086,6 @@ void CGObjCMac::EmitThrowStmt(CodeGen::CodeGenFunction &CGF,
CGF.Builder.ClearInsertionPoint();
}
-void CodeGenFunction::EmitJumpThroughFinally(llvm::BasicBlock *Dest) {
- EmitJumpThroughFinally(ObjCEHStack.back(), Dest);
-}
-
-void CodeGenFunction::EmitJumpThroughFinally(ObjCEHEntry *E,
- llvm::BasicBlock *Dst) {
- if (!HaveInsertPoint())
- return;
-
- // Find the destination code for this block. We always use 0 for the
- // fallthrough block (default destination).
- llvm::SwitchInst *SI = E->FinallySwitch;
- llvm::ConstantInt *ID;
- if (Dst == SI->getDefaultDest()) {
- ID = llvm::ConstantInt::get(llvm::Type::Int32Ty, 0);
- } else {
- ID = SI->findCaseDest(Dst);
- if (!ID) {
- // No code found, get a new unique one by just using the number
- // of switch successors.
- ID = llvm::ConstantInt::get(llvm::Type::Int32Ty, SI->getNumSuccessors());
- SI->addCase(ID, Dst);
- }
- }
-
- // Set the destination code and branch.
- Builder.CreateStore(ID, E->DestCode);
- EmitBranch(E->FinallyBlock);
-}
-
/// EmitObjCWeakRead - Code gen for loading value of a __weak
/// object: objc_read_weak (id *src)
///