diff options
author | Sean Callanan <scallanan@apple.com> | 2012-08-09 00:46:55 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-08-09 00:46:55 +0000 |
commit | 33baca29e53d781f3b1d2fb908079afd7da865b9 (patch) | |
tree | 0f485bb16818174957eeb9261a20b548acea99c7 /lldb | |
parent | 23a62018907c316c9a823ce404a42faa1f1d0e50 (diff) | |
download | bcm5719-llvm-33baca29e53d781f3b1d2fb908079afd7da865b9.tar.gz bcm5719-llvm-33baca29e53d781f3b1d2fb908079afd7da865b9.zip |
When compiling with C++11, switch from
hash_multimap to unordered_multimap.
<rdar://problem/11930775>
llvm-svn: 161558
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; }; |