GCC 3.1 changes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-25 15:00:43 +00:00
parent 0c0edf8afc
commit de32fedb8c
3 changed files with 9 additions and 2 deletions

View File

@ -131,7 +131,7 @@ class ReversePostOrderTraversal {
copy(po_begin(BB), po_end(BB), back_inserter(Blocks));
}
public:
typedef std::vector<NodeType*>::reverse_iterator rpo_iterator;
typedef typename std::vector<NodeType*>::reverse_iterator rpo_iterator;
inline ReversePostOrderTraversal(GraphT G) {
Initialize(GT::getEntryNode(G));

View File

@ -9,13 +9,20 @@
#ifndef SUPPORT_HASHSET_H
#define SUPPORT_HASHSET_H
#if __GNUC__==3
#include <ext/hash_set>
#ifndef HASH_NAMESPACE
#define HASH_NAMESPACE __gnu_cxx
#endif
#else
#include <hash_set>
#ifndef HASH_NAMESPACE
#define HASH_NAMESPACE std
#endif
#endif
using HASH_NAMESPACE::hash_set;
using HASH_NAMESPACE::hash;

View File

@ -131,7 +131,7 @@ class ReversePostOrderTraversal {
copy(po_begin(BB), po_end(BB), back_inserter(Blocks));
}
public:
typedef std::vector<NodeType*>::reverse_iterator rpo_iterator;
typedef typename std::vector<NodeType*>::reverse_iterator rpo_iterator;
inline ReversePostOrderTraversal(GraphT G) {
Initialize(GT::getEntryNode(G));