aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/DepthFirstIterator.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 22:08:36 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 22:08:36 +0000
commit7f4dd472e35569efefbeffef096c490075e3e824 (patch)
tree0648cc581fe63945f426ca9e07d9087fdd350aa8 /include/llvm/ADT/DepthFirstIterator.h
parent24e9872732dd8b3c0422dd8679de3969d495b74b (diff)
downloadexternal_llvm-7f4dd472e35569efefbeffef096c490075e3e824.tar.gz
external_llvm-7f4dd472e35569efefbeffef096c490075e3e824.tar.bz2
external_llvm-7f4dd472e35569efefbeffef096c490075e3e824.zip
Changes to build with GCC 3.1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/DepthFirstIterator.h')
-rw-r--r--include/llvm/ADT/DepthFirstIterator.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/ADT/DepthFirstIterator.h b/include/llvm/ADT/DepthFirstIterator.h
index 2961497adc..e0782ac83a 100644
--- a/include/llvm/ADT/DepthFirstIterator.h
+++ b/include/llvm/ADT/DepthFirstIterator.h
@@ -9,14 +9,16 @@
#define LLVM_SUPPORT_DEPTH_FIRST_ITERATOR_H
#include "Support/GraphTraits.h"
-#include <iterator>
+#include <Support/iterator>
#include <stack>
#include <set>
// Generic Depth First Iterator
template<class GraphT, class GT = GraphTraits<GraphT> >
-class df_iterator : public std::forward_iterator<typename GT::NodeType,
- ptrdiff_t> {
+class df_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t> {
+ typedef forward_iterator<typename GT::NodeType, ptrdiff_t> super;
+ typedef typename super::pointer pointer;
+
typedef typename GT::NodeType NodeType;
typedef typename GT::ChildIteratorType ChildItTy;