diff options
| author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-27 06:12:32 +0000 |
|---|---|---|
| committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-27 06:12:32 +0000 |
| commit | 5f4ef3c5a88f058ad98611c24617f41bc6a45d50 (patch) | |
| tree | 3c31e3e2214e6adfa39e09862f9a26865f575847 /llvm/lib/Transforms/IPO/PruneEH.cpp | |
| parent | 8e2411334cd0d7f6be54dd2b5d5cc012b6e604a1 (diff) | |
| download | bcm5719-llvm-5f4ef3c5a88f058ad98611c24617f41bc6a45d50.tar.gz bcm5719-llvm-5f4ef3c5a88f058ad98611c24617f41bc6a45d50.zip | |
Eliminate all remaining tabs and trailing spaces.
llvm-svn: 22523
Diffstat (limited to 'llvm/lib/Transforms/IPO/PruneEH.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/PruneEH.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp index 7b979d36f23..d536965518c 100644 --- a/llvm/lib/Transforms/IPO/PruneEH.cpp +++ b/llvm/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(); } |

