From fee8f19bbe1c4ce48bee66fbd1f72f2974b0531b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 13 Dec 2001 00:39:49 +0000 Subject: [PATCH] Implement proper iterator tags llvm-svn: 1441 --- include/llvm/Function.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()) {