[llvm-commits] CVS: llvm/include/llvm/Support/CFG.h

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 9 22:18:01 PST 2003


Changes in directory llvm/include/llvm/Support:

CFG.h updated: 1.15 -> 1.16

---
Log message:

Helper method


---
Diffs of the changes:  (+4 -0)

Index: llvm/include/llvm/Support/CFG.h
diff -u llvm/include/llvm/Support/CFG.h:1.15 llvm/include/llvm/Support/CFG.h:1.16
--- llvm/include/llvm/Support/CFG.h:1.15	Mon Oct 20 15:19:26 2003
+++ llvm/include/llvm/Support/CFG.h	Sun Nov  9 22:16:50 2003
@@ -111,6 +111,10 @@
     idx = I.idx;
     return *this;
   }
+
+  /// getSuccessorIndex - This is used to interface between code that wants to
+  /// operate on terminator instructions directly.
+  unsigned getSuccessorIndex() const { return Idx; }
     
   inline bool operator==(const _Self& x) const { return idx == x.idx; }
   inline bool operator!=(const _Self& x) const { return !operator==(x); }





More information about the llvm-commits mailing list