1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Use the Support/iterator file to abstract out compiler differences

llvm-svn: 3063
This commit is contained in:
Chris Lattner 2002-07-24 22:07:57 +00:00
parent 41256bc060
commit cde92b0c9c

View 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;