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 | c758c0c5cc4e72a7470b0327a6771542e47b9d4b (patch) | |
| tree | 94342c2804ddd55a596e2aff3e2bdd0fbab33911 | |
| parent | 59cad44da6f18b26d495ea3d8008f29e4d1ad4ad (diff) | |
| download | external_llvm-c758c0c5cc4e72a7470b0327a6771542e47b9d4b.zip external_llvm-c758c0c5cc4e72a7470b0327a6771542e47b9d4b.tar.gz external_llvm-c758c0c5cc4e72a7470b0327a6771542e47b9d4b.tar.bz2 | |
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 71e76f8..90b95bf 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; |
