Implement proper iterator tags
authorChris Lattner <sabre@nondot.org>
Thu, 13 Dec 2001 00:39:49 +0000 (00:39 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 13 Dec 2001 00:39:49 +0000 (00:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1441 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Function.h

index 6b44ad37b4241b8fae48880d972f671aea3c9c3e..9c026cc9a3df5b7e821c80769011200ca7596b13 100644 (file)
@@ -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()) {