aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-04-10 11:48:13 -0600
committerTom Tromey <tromey@adacore.com>2024-04-15 11:45:33 -0600
commit12406b2cdab40fd05df65c4fe4aabaf4882fcc8e (patch)
tree18d3e87d9450ee498d254daddc1cedc21a34cdb2 /gdb/dwarf2/read.c
parent35d691515799a8cf7b82a1cb934dadb6a85b022f (diff)
downloadbinutils-12406b2cdab40fd05df65c4fe4aabaf4882fcc8e.zip
binutils-12406b2cdab40fd05df65c4fe4aabaf4882fcc8e.tar.gz
binutils-12406b2cdab40fd05df65c4fe4aabaf4882fcc8e.tar.bz2
Remove 'copy_names' parameter from add_using_directive
I noticed that add_using_directive's 'copy_names' parameter is only used by a single caller. This patch removes the parameter and changes that caller to copy the names itself. I chose to use intern here since I suspect the names may well be repeated in a given objfile. Approved-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/dwarf2/read.c')
-rw-r--r--gdb/dwarf2/read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 9e37011..b029c49 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -7248,7 +7248,6 @@ read_import_statement (struct die_info *die, struct dwarf2_cu *cu)
imported_declaration,
excludes,
read_decl_line (die, cu),
- 0,
&objfile->objfile_obstack);
}
@@ -14071,7 +14070,7 @@ read_namespace (struct die_info *die, struct dwarf2_cu *cu)
previous_prefix, type->name (), NULL,
NULL, excludes,
read_decl_line (die, cu),
- 0, &objfile->objfile_obstack);
+ &objfile->objfile_obstack);
}
}