Implement proper iterator tags

llvm-svn: 1441
This commit is contained in:
Chris Lattner 2001-12-13 00:39:49 +00:00
parent b2e2570645
commit fee8f19bbe

View File

@ -130,6 +130,10 @@ public:
_BI_t BI; // BasicBlock::iterator _BI_t BI; // BasicBlock::iterator
public: public:
typedef bidirectional_iterator_tag iterator_category; 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) template<class M> InstIterator(M &m)
: BBs(m.getBasicBlocks()), BB(BBs.begin()) { // begin ctor : BBs(m.getBasicBlocks()), BB(BBs.begin()) { // begin ctor