[llvm-commits] CVS: llvm/lib/Transforms/Utils/InlineFunction.cpp SimplifyCFG.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 8 15:48:12 PST 2004


Changes in directory llvm/lib/Transforms/Utils:

InlineFunction.cpp updated: 1.22 -> 1.23
SimplifyCFG.cpp updated: 1.19 -> 1.20

---
Log message:

rename the "exceptional" destination of an invoke instruction to the 'unwind' dest


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Transforms/Utils/InlineFunction.cpp
diff -u llvm/lib/Transforms/Utils/InlineFunction.cpp:1.22 llvm/lib/Transforms/Utils/InlineFunction.cpp:1.23
--- llvm/lib/Transforms/Utils/InlineFunction.cpp:1.22	Wed Feb  4 15:33:42 2004
+++ llvm/lib/Transforms/Utils/InlineFunction.cpp	Sun Feb  8 15:43:53 2004
@@ -106,7 +106,7 @@
   // any inlined 'unwind' instructions into branches to the invoke exception
   // destination, and call instructions into invoke instructions.
   if (InvokeInst *II = dyn_cast<InvokeInst>(TheCall)) {
-    BasicBlock *InvokeDest = II->getExceptionalDest();
+    BasicBlock *InvokeDest = II->getUnwindDest();
     std::vector<Value*> InvokeDestPHIValues;
 
     // If there are PHI nodes in the exceptional destination block, we need to


Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.19 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.20
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.19	Fri Jan  9 00:12:25 2004
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp	Sun Feb  8 15:43:53 2004
@@ -115,7 +115,7 @@
       while (!Preds.empty()) {
         BasicBlock *Pred = Preds.back();
         if (InvokeInst *II = dyn_cast<InvokeInst>(Pred->getTerminator()))
-          if (II->getExceptionalDest() == BB) {
+          if (II->getUnwindDest() == BB) {
             // Insert a new branch instruction before the invoke, because this
             // is now a fall through...
             BranchInst *BI = new BranchInst(II->getNormalDest(), II);





More information about the llvm-commits mailing list