Remove casts from dwarf2/index-write.c
authorTom Tromey <tom@tromey.com>
Wed, 26 Feb 2020 22:41:07 +0000 (15:41 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 26 Feb 2020 22:49:50 +0000 (15:49 -0700)
commitedfe0a0c6561cf838f3f885c22940025a826d900
tree2af64454c203b6f7aff955be32fc95a3ddadea6b
parent0d79cdc494d5eb9db26a602d62c92d49f83f407e
Remove casts from dwarf2/index-write.c

dwarf2/index-write.c casts pointers to "dwarf2_psymtab *", but as far
as I can tell, it does not actually use any DWARF-specific fields of
the psymtab.  So, this patch changes this code to use partial_symtab
instead.  This removes nearly every cast, leaving just the unavoidable
one from addrmap iteration.

gdb/ChangeLog
2020-02-26  Tom Tromey  <tom@tromey.com>

* dwarf2/index-write.c (psym_index_map): Change type.
(add_address_entry_worker, write_one_signatured_type)
(recursively_count_psymbols, recursively_write_psymbols)
(class debug_names, psyms_seen_size, write_gdbindex)
(write_debug_names): Use partial_symtab, not dwarf2_psymtab.
gdb/ChangeLog
gdb/dwarf2/index-write.c
This page took 0.026375 seconds and 4 git commands to generate.