]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make dw_expand_symtabs_matching_file_matcher static
authorTom Tromey <tom@tromey.com>
Sat, 8 Feb 2025 01:36:58 +0000 (18:36 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 22:07:58 +0000 (16:07 -0600)
dw_expand_symtabs_matching_file_matcher is no longer needed outside of
read.c, so it can be made static.

Acked-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/read.c
gdb/dwarf2/read.h

index 5e762f669235d7877cb7dd1abd3791b839e44f5b..653e63fa826ca542c88556daea1be48832bf3795 100644 (file)
@@ -851,6 +851,11 @@ static struct dwarf2_section_info *cu_debug_loc_section (struct dwarf2_cu *cu);
 static struct dwarf2_section_info *cu_debug_rnglists_section
   (struct dwarf2_cu *cu, dwarf_tag tag);
 
+static void dw_expand_symtabs_matching_file_matcher
+  (dwarf2_per_objfile *per_objfile,
+   auto_bool_vector &cus_to_skip,
+   expand_symtabs_file_matcher file_matcher);
+
 static void get_scope_pc_bounds (struct die_info *,
                                 unrelocated_addr *, unrelocated_addr *,
                                 struct dwarf2_cu *);
@@ -2030,9 +2035,10 @@ dw2_expand_symtabs_matching_one
   return true;
 }
 
-/* See read.h.  */
+/* If FILE_MATCHER is non-NULL, update CUS_TO_SKIP as appropriate
+   based on FILE_MATCHER.  */
 
-void
+static void
 dw_expand_symtabs_matching_file_matcher
   (dwarf2_per_objfile *per_objfile,
    auto_bool_vector &cus_to_skip,
index de6315f6123755d18d6f28fcbd28667567c83a09..0d488c917004e3bbfdc59f0172bab1731e5cded7 100644 (file)
@@ -1257,14 +1257,6 @@ extern bool dw2_expand_symtabs_matching_one
    expand_symtabs_expansion_listener expansion_notify,
    expand_symtabs_lang_matcher lang_matcher);
 
-/* If FILE_MATCHER is non-NULL, update CUS_TO_SKIP as appropriate
-   based on FILE_MATCHER.  */
-
-extern void dw_expand_symtabs_matching_file_matcher
-  (dwarf2_per_objfile *per_objfile,
-   auto_bool_vector &cus_to_skip,
-   expand_symtabs_file_matcher file_matcher);
-
 /* Return pointer to string at .debug_str offset STR_OFFSET.  */
 
 extern const char *read_indirect_string_at_offset