mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user