]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make language_requires_canonicalization 'static'
authorTom Tromey <tom@tromey.com>
Mon, 31 Mar 2025 22:46:23 +0000 (16:46 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 1 Apr 2025 13:30:10 +0000 (07:30 -0600)
language_requires_canonicalization is only called from cooked-index.c,
so mark it as static.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/cooked-index.c
gdb/dwarf2/cooked-index.h

index feaf9b5fe29d9df022fda2bb941106b37f25642c..32e299ffd10c855a3fe5c4fc8ef0bcde4e5c49ce 100644 (file)
@@ -60,9 +60,12 @@ to_string (cooked_index_flag flags)
   return flags.to_string (mapping);
 }
 
-/* See cooked-index.h.  */
+/* Return true if LANG requires canonicalization.  This is used
+   primarily to work around an issue computing the name of "main".
+   This function must be kept in sync with
+   cooked_index_shard::finalize.  */
 
-bool
+static bool
 language_requires_canonicalization (enum language lang)
 {
   return (lang == language_ada
index 56c84bdc93d17d56076dba20790a0bc1c8dcf119..101cf5bd57820a49074b806d4b530d76a77dd4f7 100644 (file)
@@ -99,13 +99,6 @@ union cooked_index_entry_ref
 
 std::string to_string (cooked_index_flag flags);
 
-/* Return true if LANG requires canonicalization.  This is used
-   primarily to work around an issue computing the name of "main".
-   This function must be kept in sync with
-   cooked_index_shard::finalize.  */
-
-extern bool language_requires_canonicalization (enum language lang);
-
 /* A cooked_index_entry represents a single item in the index.  Note
    that two entries can be created for the same DIE -- one using the
    name, and another one using the linkage name, if any.