mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
iterator_range for machine block terminators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57f45392e2
commit
3abd729d21
@ -242,6 +242,12 @@ public:
|
|||||||
reverse_iterator rend () { return instr_rend(); }
|
reverse_iterator rend () { return instr_rend(); }
|
||||||
const_reverse_iterator rend () const { return instr_rend(); }
|
const_reverse_iterator rend () const { return instr_rend(); }
|
||||||
|
|
||||||
|
inline iterator_range<iterator> terminators() {
|
||||||
|
return iterator_range<iterator>(getFirstTerminator(), end());
|
||||||
|
}
|
||||||
|
inline iterator_range<const_iterator> terminators() const {
|
||||||
|
return iterator_range<const_iterator>(getFirstTerminator(), end());
|
||||||
|
}
|
||||||
|
|
||||||
// Machine-CFG iterators
|
// Machine-CFG iterators
|
||||||
typedef std::vector<MachineBasicBlock *>::iterator pred_iterator;
|
typedef std::vector<MachineBasicBlock *>::iterator pred_iterator;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user