summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 20:44:02 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 20:44:02 +0000
commitf7b84b6718626a88bd200fb65e320d9eef2b2c8e (patch)
tree25d0ac41dd76f460524342f174881f5929d0bbec /llvm
parentafdf577637a02959527f6f1c29037f7f6d4f84d5 (diff)
downloadbcm5719-llvm-f7b84b6718626a88bd200fb65e320d9eef2b2c8e.tar.gz
bcm5719-llvm-f7b84b6718626a88bd200fb65e320d9eef2b2c8e.zip
*** empty log message ***
llvm-svn: 3053
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Type.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/include/llvm/Type.h b/llvm/include/llvm/Type.h
index e7a192bac95..99e038af8fb 100644
--- a/llvm/include/llvm/Type.h
+++ b/llvm/include/llvm/Type.h
@@ -228,8 +228,12 @@ public:
#include "llvm/Type.def"
private:
- class TypeIterator : public std::bidirectional_iterator<const Type,
- ptrdiff_t> {
+ class TypeIterator
+#if __GNUC__ == 3
+ : public std::iterator<std::bidirectional_iterator_tag, const Type> {
+#else
+ : public std::bidirectional_iterator<const Type, ptrdiff_t> {
+#endif
const Type * const Ty;
unsigned Idx;
OpenPOWER on IntegriCloud