aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/cooked-index-shard.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dwarf2/cooked-index-shard.h')
-rw-r--r--gdb/dwarf2/cooked-index-shard.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/dwarf2/cooked-index-shard.h b/gdb/dwarf2/cooked-index-shard.h
index 925960b..3a8e34d 100644
--- a/gdb/dwarf2/cooked-index-shard.h
+++ b/gdb/dwarf2/cooked-index-shard.h
@@ -48,6 +48,13 @@ public:
cooked_index_entry_ref parent_entry,
dwarf2_per_cu *per_cu);
+ /* Add a copy of NAME to the index. Return a pointer to the
+ copy. */
+ const char *add (std::string_view name)
+ {
+ return m_names.insert (name);
+ }
+
/* Install a new fixed addrmap from the given mutable addrmap. */
void install_addrmap (addrmap_mutable *map)
{