From: Chris Lattner Date: Wed, 24 Jul 2002 22:07:57 +0000 (+0000) Subject: Use the Support/iterator file to abstract out compiler differences X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=24e9872732dd8b3c0422dd8679de3969d495b74b;p=oota-llvm.git Use the Support/iterator file to abstract out compiler differences git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3063 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 99e038af8fb..8cb4b581fcf 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -28,6 +28,7 @@ #include "llvm/Value.h" #include "Support/GraphTraits.h" +#include "Support/iterator" class DerivedType; class FunctionType; @@ -228,12 +229,7 @@ public: #include "llvm/Type.def" private: - class TypeIterator -#if __GNUC__ == 3 - : public std::iterator { -#else - : public std::bidirectional_iterator { -#endif + class TypeIterator : public bidirectional_iterator { const Type * const Ty; unsigned Idx;