diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-29 13:51:13 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-31 08:55:55 -0600 |
commit | 9497d69fc0eeca8682cc09360fb822ced6b4670f (patch) | |
tree | ddefa0ba7514d91b246dfcf521900c802b95fe50 /gdb/language.h | |
parent | 6f214d0f399847b13f979651c3b46befcbb42140 (diff) | |
download | binutils-gdb-9497d69fc0eeca8682cc09360fb822ced6b4670f.tar.gz |
Remove language_demangle
I noticed that language_demangle shadows the global
"current_language". When I went to fix this, though, I then saw that
language_demangle is only called in two places, and has a comment
saying it should be removed. This patch removes it. Note that the
NULL check in language_demangle is not needed by either of the
existing callers.
Regression tested on x86-64 Fedora 36.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/language.h b/gdb/language.h index a51ddf97381..57df8acd0a3 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -791,11 +791,6 @@ extern const char *language_str (enum language); extern CORE_ADDR skip_language_trampoline (frame_info_ptr, CORE_ADDR pc); -/* Return demangled language symbol, or NULL. */ -extern gdb::unique_xmalloc_ptr<char> language_demangle - (const struct language_defn *current_language, - const char *mangled, int options); - /* Return information about whether TYPE should be passed (and returned) by reference at the language level. */ struct language_pass_by_ref_info language_pass_by_reference (struct type *type); |