From: Chris Lattner Date: Thu, 13 Dec 2001 00:39:49 +0000 (+0000) Subject: Implement proper iterator tags X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a4268ad38974da17ba38378328c84919245c2f5c;p=oota-llvm.git Implement proper iterator tags git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1441 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 6b44ad37b42..9c026cc9a3d 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -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 InstIterator(M &m) : BBs(m.getBasicBlocks()), BB(BBs.begin()) { // begin ctor if (BB != BBs.end()) {