]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove 'copy_names' parameter from add_using_directive
authorTom Tromey <tromey@adacore.com>
Wed, 10 Apr 2024 17:48:13 +0000 (11:48 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 15 Apr 2024 17:45:33 +0000 (11:45 -0600)
commit12406b2cdab40fd05df65c4fe4aabaf4882fcc8e
tree18d3e87d9450ee498d254daddc1cedc21a34cdb2
parent35d691515799a8cf7b82a1cb934dadb6a85b022f
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>
gdb/cp-namespace.c
gdb/dwarf2/read.c
gdb/namespace.c
gdb/namespace.h