From 00b16889ab461b7ecef1c91ade101186b7f1fce2 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Wed, 27 Jul 2005 06:12:32 +0000 Subject: Eliminate all remaining tabs and trailing spaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22523 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/PruneEH.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Transforms/IPO/PruneEH.cpp') diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 7b979d36f2..d536965518 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/lib/Transforms/IPO/PruneEH.cpp @@ -149,24 +149,24 @@ bool PruneEH::SimplifyFunction(Function *F) { II->op_end()), Name, II); Call->setCallingConv(II->getCallingConv()); - + // Anything that used the value produced by the invoke instruction // now uses the value produced by the call instruction. II->replaceAllUsesWith(Call); BasicBlock *UnwindBlock = II->getUnwindDest(); UnwindBlock->removePredecessor(II->getParent()); - + // Insert a branch to the normal destination right before the // invoke. new BranchInst(II->getNormalDest(), II); - + // Finally, delete the invoke instruction! BB->getInstList().pop_back(); // If the unwind block is now dead, nuke it. if (pred_begin(UnwindBlock) == pred_end(UnwindBlock)) DeleteBasicBlock(UnwindBlock); // Delete the new BB. - + ++NumRemoved; MadeChange = true; } @@ -221,6 +221,6 @@ void PruneEH::DeleteBasicBlock(BasicBlock *BB) { for (unsigned i = 0, e = Succs.size(); i != e; ++i) Succs[i]->removePredecessor(BB); - + BB->eraseFromParent(); } -- cgit v1.2.3