diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:07:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:07:57 +0000 |
commit | 24e9872732dd8b3c0422dd8679de3969d495b74b (patch) | |
tree | f3a6d11c27ba09f955d0b2b31e6c87f50a198b4d /include/llvm/Type.h | |
parent | 0d219edad2fd5e7b400ecd49ac833a7a3199af60 (diff) | |
download | llvm-24e9872732dd8b3c0422dd8679de3969d495b74b.tar.gz llvm-24e9872732dd8b3c0422dd8679de3969d495b74b.tar.bz2 llvm-24e9872732dd8b3c0422dd8679de3969d495b74b.tar.xz |
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
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 8 |
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; |