forked from OSchip/llvm-project
Try to fix broken build with some compilers.
llvm-svn: 325388
This commit is contained in:
parent
61dc84a4db
commit
10a748aa1e
|
@ -26,7 +26,29 @@ class BinaryStreamWriter;
|
|||
|
||||
namespace pdb {
|
||||
|
||||
class HashTableIterator;
|
||||
class HashTableIterator
|
||||
: public iterator_facade_base<HashTableIterator, std::forward_iterator_tag,
|
||||
std::pair<uint32_t, uint32_t>> {
|
||||
friend class HashTable;
|
||||
|
||||
HashTableIterator(const HashTable &Map, uint32_t Index, bool IsEnd);
|
||||
|
||||
public:
|
||||
HashTableIterator(const HashTable &Map);
|
||||
|
||||
HashTableIterator &operator=(const HashTableIterator &R);
|
||||
bool operator==(const HashTableIterator &R) const;
|
||||
const std::pair<uint32_t, uint32_t> &operator*() const;
|
||||
HashTableIterator &operator++();
|
||||
|
||||
private:
|
||||
bool isEnd() const { return IsEnd; }
|
||||
uint32_t index() const { return Index; }
|
||||
|
||||
const HashTable *Map;
|
||||
uint32_t Index;
|
||||
bool IsEnd;
|
||||
};
|
||||
|
||||
class HashTable {
|
||||
friend class HashTableIterator;
|
||||
|
@ -189,30 +211,6 @@ private:
|
|||
SparseBitVector<> &Vec);
|
||||
};
|
||||
|
||||
class HashTableIterator
|
||||
: public iterator_facade_base<HashTableIterator, std::forward_iterator_tag,
|
||||
std::pair<uint32_t, uint32_t>> {
|
||||
friend class HashTable;
|
||||
|
||||
HashTableIterator(const HashTable &Map, uint32_t Index, bool IsEnd);
|
||||
|
||||
public:
|
||||
HashTableIterator(const HashTable &Map);
|
||||
|
||||
HashTableIterator &operator=(const HashTableIterator &R);
|
||||
bool operator==(const HashTableIterator &R) const;
|
||||
const std::pair<uint32_t, uint32_t> &operator*() const;
|
||||
HashTableIterator &operator++();
|
||||
|
||||
private:
|
||||
bool isEnd() const { return IsEnd; }
|
||||
uint32_t index() const { return Index; }
|
||||
|
||||
const HashTable *Map;
|
||||
uint32_t Index;
|
||||
bool IsEnd;
|
||||
};
|
||||
|
||||
} // end namespace pdb
|
||||
|
||||
} // end namespace llvm
|
||||
|
|
Loading…
Reference in New Issue