Use the Support/iterator file to abstract out compiler differences
authorChris Lattner <sabre@nondot.org>
Wed, 24 Jul 2002 22:07:57 +0000 (22:07 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Jul 2002 22:07:57 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3063 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Type.h

index 99e038af8fb7b3926e0ae5323b6c9d595f1d0a64..8cb4b581fcfb322a1d95a32af495ba3328796548 100644 (file)
@@ -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<std::bidirectional_iterator_tag, const Type> {
-#else
-    : public std::bidirectional_iterator<const Type, ptrdiff_t> {
-#endif
+  class TypeIterator : public bidirectional_iterator<const Type, ptrdiff_t> {
     const Type * const Ty;
     unsigned Idx;