#include <vector>
#include <list>
#include <algorithm>
-#include <ext/hash_map>
-#include <ext/hash_set>
+#include <unordered_map>
#include <cxxabi.h>
#include "Options.h"
struct SectionEquals {
bool operator()(const ld::Section* left, const ld::Section* right) const;
};
- typedef __gnu_cxx::hash_map<const ld::Section*, FinalSection*, SectionHash, SectionEquals> SectionInToOut;
+ typedef std::unordered_map<const ld::Section*, FinalSection*, SectionHash, SectionEquals> SectionInToOut;
SectionInToOut _sectionInToFinalMap;
size_t InternalState::SectionHash::operator()(const ld::Section* sect) const
{
size_t hash = 0;
- __gnu_cxx::hash<const char*> temp;
+ ld::CStringHash temp;
hash += temp.operator()(sect->segmentName());
hash += temp.operator()(sect->sectionName());
return hash;