diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-01-13 22:21:43 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-01-13 22:21:43 +0000 |
commit | edd1cc78d2bc6e07679489278460bae2d56a501d (patch) | |
tree | 94342c2804ddd55a596e2aff3e2bdd0fbab33911 | |
parent | 5106140a50c28536dca1cbf02ade8de988cad537 (diff) |
Add getSource() to SuccIterator
Get the source BB of an iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93364 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/CFG.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 71e76f866c..90b95bf7cf 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -189,6 +189,11 @@ public: // tmp += offset; // return tmp.operator*(); // } + + /// Get the source BB of this iterator. + inline BB_ *getSource() { + return Term->getParent(); + } }; typedef SuccIterator<TerminatorInst*, BasicBlock> succ_iterator; |