summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h b/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h
index 909f6aaeb3e..81da55a13b2 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h
+++ b/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h
@@ -652,6 +652,19 @@ struct DWARFMappedHash
return die_offsets.size();
}
+ size_t
+ FindByName (const char *name, DIEArray &die_offsets)
+ {
+ Pair kv_pair;
+ size_t old_size = die_offsets.size();
+ if (Find (name, kv_pair))
+ {
+ die_offsets.swap(kv_pair.value);
+ return die_offsets.size() - old_size;
+ }
+ return 0;
+ }
+
protected:
const lldb_private::DataExtractor &m_data;
const lldb_private::DataExtractor &m_string_table;
OpenPOWER on IntegriCloud