aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Type.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 99e038af8f..8cb4b581fc 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<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;