mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 05:27:43 +00:00
Implement proper iterator tags
llvm-svn: 1441
This commit is contained in:
parent
b2e2570645
commit
fee8f19bbe
@ -130,7 +130,11 @@ public:
|
||||
_BI_t BI; // BasicBlock::iterator
|
||||
public:
|
||||
typedef bidirectional_iterator_tag iterator_category;
|
||||
|
||||
typedef IIty value_type;
|
||||
typedef unsigned difference_type;
|
||||
typedef BIty pointer;
|
||||
typedef IIty reference;
|
||||
|
||||
template<class M> InstIterator(M &m)
|
||||
: BBs(m.getBasicBlocks()), BB(BBs.begin()) { // begin ctor
|
||||
if (BB != BBs.end()) {
|
||||
|
Loading…
Reference in New Issue
Block a user