[llvm-commits] CVS: llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp LowerSetJmp.cpp PruneEH.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 8 15:44:01 PST 2004
Changes in directory llvm/lib/Transforms/IPO:
DeadArgumentElimination.cpp updated: 1.15 -> 1.16
LowerSetJmp.cpp updated: 1.16 -> 1.17
PruneEH.cpp updated: 1.10 -> 1.11
---
Log message:
rename the "exceptional" destination of an invoke instruction to the 'unwind' dest
---
Diffs of the changes: (+4 -4)
Index: llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
diff -u llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.15 llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.16
--- llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1.15 Mon Feb 2 13:32:27 2004
+++ llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp Sun Feb 8 15:43:47 2004
@@ -424,7 +424,7 @@
Instruction *New;
if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) {
- New = new InvokeInst(NF, II->getNormalDest(), II->getExceptionalDest(),
+ New = new InvokeInst(NF, II->getNormalDest(), II->getUnwindDest(),
Args, "", Call);
} else {
New = new CallInst(NF, Args, "", Call);
Index: llvm/lib/Transforms/IPO/LowerSetJmp.cpp
diff -u llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.16 llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.17
--- llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.16 Sun Feb 8 14:49:07 2004
+++ llvm/lib/Transforms/IPO/LowerSetJmp.cpp Sun Feb 8 15:43:47 2004
@@ -489,7 +489,7 @@
if (!DFSBlocks.count(BB)) return;
BasicBlock* NormalBB = II.getNormalDest();
- BasicBlock* ExceptBB = II.getExceptionalDest();
+ BasicBlock* ExceptBB = II.getUnwindDest();
Function* Func = BB->getParent();
BasicBlock* NewExceptBB = new BasicBlock("InvokeExcept", Func);
@@ -503,7 +503,7 @@
new BranchInst(PrelimBBMap[Func], ExceptBB, IsLJExcept, NewExceptBB);
- II.setExceptionalDest(NewExceptBB);
+ II.setUnwindDest(NewExceptBB);
++InvokesTransformed;
}
Index: llvm/lib/Transforms/IPO/PruneEH.cpp
diff -u llvm/lib/Transforms/IPO/PruneEH.cpp:1.10 llvm/lib/Transforms/IPO/PruneEH.cpp:1.11
--- llvm/lib/Transforms/IPO/PruneEH.cpp:1.10 Sun Feb 8 15:15:59 2004
+++ llvm/lib/Transforms/IPO/PruneEH.cpp Sun Feb 8 15:43:47 2004
@@ -113,7 +113,7 @@
// Anything that used the value produced by the invoke instruction
// now uses the value produced by the call instruction.
II->replaceAllUsesWith(Call);
- II->getExceptionalDest()->removePredecessor(II->getParent());
+ II->getUnwindDest()->removePredecessor(II->getParent());
// Insert a branch to the normal destination right before the
// invoke.
More information about the llvm-commits
mailing list