Remove symbol_get_demangled_name
authorTom Tromey <tom@tromey.com>
Fri, 24 Apr 2020 21:35:01 +0000 (15:35 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 24 Apr 2020 21:35:04 +0000 (15:35 -0600)
commit7151c1af38e250fa4d024fa53f1cd5b3fc199314
tree6aadcdd62889c14c77f421d9dd7f7b1a4930402b
parent906bb4c58faa8e2c1c62e295f8054e75e910e5e8
Remove symbol_get_demangled_name

Now that symbol_get_demangled_name is only used by general_symbol_info
methods, and because these methods already check the symbol's language
to decide what to return, symbol_get_demangled_name is no longer
needed.  This patch removes it.

gdb/ChangeLog
2020-04-24  Tom Tromey  <tom@tromey.com>

* symtab.h (symbol_get_demangled_name): Don't declare.
* symtab.c (symbol_get_demangled_name): Remove.
(general_symbol_info::natural_name)
(general_symbol_info::demangled_name): Update.
gdb/ChangeLog
gdb/symtab.c
gdb/symtab.h