Simplify gdb_index writing
authorTom Tromey <tom@tromey.com>
Fri, 28 May 2021 22:25:32 +0000 (16:25 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 5 Jul 2021 18:23:41 +0000 (12:23 -0600)
commit844a72efbced876d079b7a152fcab05f3ad72c5a
treefdf461b1e4a2bbdf80e1b6b66726452292ef8be2
parent870c2204a2b69bfeaa298a280e450d20cbfeb890
Simplify gdb_index writing

write_gdbindex writes the CUs first, then walks the signatured type
hash table to write out the TUs.  However, now that CUs and TUs are
unified in the DWARF reader, it's simpler to handle both of these in
the same loop.
gdb/dwarf2/index-write.c