mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
CFG.h: change the iterator tag
Method.h: Add an iterator type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5289d52a55
commit
d6a7b7552f
@ -111,7 +111,8 @@ class SuccIterator {
|
||||
unsigned idx;
|
||||
public:
|
||||
typedef SuccIterator<_Term, _BB> _Self;
|
||||
typedef forward_iterator_tag iterator_category;
|
||||
// TODO: This can be random access iterator, need operator+ and stuff tho
|
||||
typedef bidirectional_iterator_tag iterator_category;
|
||||
typedef _BB pointer;
|
||||
|
||||
inline SuccIterator(_Term T) : Term(T), idx(0) {} // begin iterator
|
||||
|
@ -28,6 +28,7 @@ class Method : public SymTabValue {
|
||||
public:
|
||||
typedef ValueHolder<MethodArgument, Method> ArgumentListType;
|
||||
typedef ValueHolder<BasicBlock , Method> BasicBlocksType;
|
||||
typedef BasicBlocksType::iterator iterator;
|
||||
private:
|
||||
|
||||
// Important things that make up a method!
|
||||
|
Loading…
Reference in New Issue
Block a user