aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-03-31 16:46:23 -0600
committerTom Tromey <tom@tromey.com>2025-04-01 07:30:10 -0600
commit5021c5bbf8ec0ce00d37fa5ef83d669d2f3e123b (patch)
treea584ab5d04f03b229b66324de37732517b539763
parent32c5beae951d7e763bddba6351da62c0d2016ca3 (diff)
downloadbinutils-5021c5bbf8ec0ce00d37fa5ef83d669d2f3e123b.zip
binutils-5021c5bbf8ec0ce00d37fa5ef83d669d2f3e123b.tar.gz
binutils-5021c5bbf8ec0ce00d37fa5ef83d669d2f3e123b.tar.bz2
Make language_requires_canonicalization 'static'
language_requires_canonicalization is only called from cooked-index.c, so mark it as static. Approved-By: Simon Marchi <simon.marchi@efficios.com>
-rw-r--r--gdb/dwarf2/cooked-index.c7
-rw-r--r--gdb/dwarf2/cooked-index.h7
2 files changed, 5 insertions, 9 deletions
diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c
index feaf9b5..32e299f 100644
--- a/gdb/dwarf2/cooked-index.c
+++ b/gdb/dwarf2/cooked-index.c
@@ -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
diff --git a/gdb/dwarf2/cooked-index.h b/gdb/dwarf2/cooked-index.h
index 56c84bd..101cf5b 100644
--- a/gdb/dwarf2/cooked-index.h
+++ b/gdb/dwarf2/cooked-index.h
@@ -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.