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;