aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-13 00:39:49 +0000
committerChris Lattner <sabre@nondot.org>2001-12-13 00:39:49 +0000
commita4268ad38974da17ba38378328c84919245c2f5c (patch)
tree25b7f1c3bad5357571c0e81ca256875849411c6a /include/llvm/Function.h
parent9df24be93bffe8d07bcb14fa50393a46f56ab7c4 (diff)
downloadexternal_llvm-a4268ad38974da17ba38378328c84919245c2f5c.zip
external_llvm-a4268ad38974da17ba38378328c84919245c2f5c.tar.gz
external_llvm-a4268ad38974da17ba38378328c84919245c2f5c.tar.bz2
Implement proper iterator tags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 6b44ad3..9c026cc9 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<class M> InstIterator(M &m)
: BBs(m.getBasicBlocks()), BB(BBs.begin()) { // begin ctor
if (BB != BBs.end()) {