From: Tobias Grosser Date: Wed, 13 Jan 2010 22:21:43 +0000 (+0000) Subject: Add getSource() to SuccIterator X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=edd1cc78d2bc6e07679489278460bae2d56a501d;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 71e76f866c9..90b95bf7cfd 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 succ_iterator;