diff --git a/src/common/dwarf_cu_to_module.cc b/src/common/dwarf_cu_to_module.cc index 1d157def..297e058d 100644 --- a/src/common/dwarf_cu_to_module.cc +++ b/src/common/dwarf_cu_to_module.cc @@ -46,7 +46,7 @@ #include #include -#include +#include #include #include "common/dwarf_line_to_module.h" @@ -55,8 +55,8 @@ namespace google_breakpad { using std::map; using std::pair; -using std::set; using std::sort; +using std::tr1::unordered_set; using std::vector; // Data provided by a DWARF specification DIE. @@ -118,7 +118,7 @@ struct DwarfCUToModule::FilePrivate { // so this set will actually hold yet another copy of the string (although // everything will still work). To improve memory consumption portably, // we will probably need to use pointers to strings held in this set. - set common_strings; + unordered_set common_strings; // A map from offsets of DIEs within the .debug_info section to // Specifications describing those DIEs. Specification references can @@ -337,7 +337,7 @@ void DwarfCUToModule::GenericDIEHandler::ProcessAttributeReference( } string DwarfCUToModule::GenericDIEHandler::AddStringToPool(const string &str) { - pair::iterator, bool> result = + pair::iterator, bool> result = cu_context_->file_context->file_private_->common_strings.insert(str); return *result.first; }