diff options
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugPubnamesSet.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugPubnamesSet.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugPubnamesSet.h index 113f3b0172e..adf93d5a194 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugPubnamesSet.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugPubnamesSet.h @@ -13,7 +13,11 @@ #include "SymbolFileDWARF.h" #include <string> #include <vector> +#if __cplusplus >= 201103L +#include <unordered_map> +#else #include <ext/hash_map> +#endif class DWARFDebugPubnamesSet { @@ -83,7 +87,11 @@ protected: dw_offset_t m_offset; Header m_header; +#if __cplusplus >= 201103L + typedef std::unordered_multimap<const char*, uint32_t, std::hash<const char*>, CStringEqualBinaryPredicate> cstr_to_index_mmap; +#else typedef __gnu_cxx::hash_multimap<const char*, uint32_t, __gnu_cxx::hash<const char*>, CStringEqualBinaryPredicate> cstr_to_index_mmap; +#endif DescriptorColl m_descriptors; mutable cstr_to_index_mmap m_name_to_descriptor_index; }; |