Replace SYMBOL_SET_LINKAGE_NAME with a member function
authorChristian Biesinger <cbiesinger@google.com>
Tue, 26 Nov 2019 20:41:30 +0000 (14:41 -0600)
committerChristian Biesinger <cbiesinger@google.com>
Wed, 27 Nov 2019 17:09:18 +0000 (11:09 -0600)
commit43678b0afe412f6e920e1edd6d403068918ab259
treea7306431f0369659eb437b9d0ea258e4f1c7bc79
parentdb5960b4d22761507097f816b1dac3bb56a22bb5
Replace SYMBOL_SET_LINKAGE_NAME with a member function

Easier to read, shorter, and will later make it possible to make the
name field private.

gdb/ChangeLog:

2019-11-27  Christian Biesinger  <cbiesinger@google.com>

* ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
with sym->set_linkage_name.
* coffread.c (coff_read_enum_type): Likewise.
* mdebugread.c (parse_symbol): Likewise.
* stabsread.c (patch_block_stabs): Likewise.
(define_symbol): Likewise.
(read_enum_type): Likewise.
(common_block_end): Likewise.
* symtab.h (struct general_symbol_info) <set_linkage_name>: New
function.
(SYMBOL_SET_LINKAGE_NAME): Remove.
* xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
with sym->set_linkage_name.

Change-Id: I174a0542c014f1b035070068076308bb8ae79abb
gdb/ChangeLog
gdb/ada-exp.y
gdb/coffread.c
gdb/mdebugread.c
gdb/stabsread.c
gdb/symtab.h
gdb/xcoffread.c