mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add getSource() to SuccIterator
Get the source BB of an iterator. llvm-svn: 93364
This commit is contained in:
parent
44e38a98c5
commit
fc9e55b439
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user