mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
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
This commit is contained in:
parent
5106140a50
commit
edd1cc78d2
@ -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…
x
Reference in New Issue
Block a user