]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/dwarf: remove unused cooked_index::cooked_index parameter
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 15 Mar 2025 22:13:42 +0000 (18:13 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 17 Mar 2025 20:14:08 +0000 (16:14 -0400)
Following the previous patch, this parameter is now unused.  Remove it.

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

index 9626b2c16c0c95722e9f053b0e2e4196e131b463..724615f497e31a576f8f1f597727ea25e5abd1e8 100644 (file)
@@ -712,8 +712,7 @@ cooked_index_worker::write_to_cache (const cooked_index *idx,
     }
 }
 
-cooked_index::cooked_index (dwarf2_per_objfile *per_objfile,
-                           cooked_index_worker_up &&worker)
+cooked_index::cooked_index (cooked_index_worker_up &&worker)
   : m_state (std::move (worker))
 {
   /* ACTIVE_VECTORS is not locked, and this assert ensures that this
index be67a83150dfb7b80f647cbe646d8928439b96b3..56c84bdc93d17d56076dba20790a0bc1c8dcf119 100644 (file)
@@ -561,8 +561,7 @@ using cooked_index_worker_up = std::unique_ptr<cooked_index_worker>;
 class cooked_index : public dwarf_scanner_base
 {
 public:
-  cooked_index (dwarf2_per_objfile *per_objfile,
-               cooked_index_worker_up &&worker);
+  cooked_index (cooked_index_worker_up &&worker);
   ~cooked_index () override;
 
   DISABLE_COPY_AND_ASSIGN (cooked_index);
index 6e9ea667c3a9911e8739b83d5bdf7c17a8ebc6f8..8c265dd6b03f1f68bd87a4dde8304960f0f4b9fa 100644 (file)
@@ -860,8 +860,7 @@ do_dwarf2_read_debug_names (dwarf2_per_objfile *per_objfile)
 
   auto cidn = (std::make_unique<cooked_index_worker_debug_names>
               (per_objfile, std::move (map)));
-  auto idx = std::make_unique<debug_names_index> (per_objfile,
-                                                 std::move (cidn));
+  auto idx = std::make_unique<debug_names_index> (std::move (cidn));
   per_bfd->start_reading (std::move (idx));
 
   return true;
index fd178e90a86125e22cd52223ee4338c5d021c2af..ed7558933dfa8b1c99f0a83cb75801c2caed2bbe 100644 (file)
@@ -14914,8 +14914,7 @@ start_debug_info_reader (dwarf2_per_objfile *per_objfile)
      scanning; and then start the scanning.  */
   dwarf2_per_bfd *per_bfd = per_objfile->per_bfd;
   auto worker = std::make_unique<cooked_index_worker_debug_info> (per_objfile);
-  per_bfd->start_reading (std::make_unique<cooked_index> (per_objfile,
-                                                         std::move (worker)));
+  per_bfd->start_reading (std::make_unique<cooked_index> (std::move (worker)));
 }
 
 \f