diff --git a/llvm/include/llvm/Type.h b/llvm/include/llvm/Type.h index 99e038af8fb7..8cb4b581fcfb 100644 --- a/llvm/include/llvm/Type.h +++ b/llvm/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;