When compiling with C++11, switch from
authorSean Callanan <scallanan@apple.com>
Thu, 9 Aug 2012 00:46:55 +0000 (00:46 +0000)
committerSean Callanan <scallanan@apple.com>
Thu, 9 Aug 2012 00:46:55 +0000 (00:46 +0000)
hash_multimap to unordered_multimap.

<rdar://problem/11930775>

llvm-svn: 161558

lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugPubnamesSet.h

index 113f3b0..adf93d5 100644 (file)
 #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;
 };