]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: remove create_cu_from_index_list
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 3 Mar 2025 21:35:35 +0000 (16:35 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 4 Mar 2025 15:41:54 +0000 (10:41 -0500)
commit121efb593c239befbca90ed492492b44a695184e
tree87b3ff243981b526f8a9ce2ac5ca56b9833347f7
parentb55f9065770985801f7166d0e685671255252b5d
gdb/dwarf: remove create_cu_from_index_list

I noticed that create_cu_from_index_list is only used in
read-gdb-index.c, so I started by moving it there.  But given that this
function is use at only one spot and doesn't do much, I opted to inline
its code in the caller instead.

Change-Id: Iebe0dc20d345fa70a2f11aa9ff1a04fe26a31407
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read-gdb-index.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h