Add getSource() to SuccIterator

Get the source BB of an iterator.

llvm-svn: 93364
This commit is contained in:
Tobias Grosser 2010-01-13 22:21:43 +00:00
parent 44e38a98c5
commit fc9e55b439

View File

@ -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;