1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

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;