From 10a748aa1e954100aa22d457905eb45816d74848 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 16 Feb 2018 20:58:25 +0000 Subject: [PATCH] Try to fix broken build with some compilers. llvm-svn: 325388 --- llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h | 48 +++++++++++----------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h b/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h index 231da05..ab462b4 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h +++ b/llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h @@ -26,7 +26,29 @@ class BinaryStreamWriter; namespace pdb { -class HashTableIterator; +class HashTableIterator + : public iterator_facade_base> { + 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 &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> { - 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 &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 -- 2.7.4