emit: Check if disambiguated struct/enum/union name was already emitted in a previous CU

When generating from DWARF we may find the same ambiguous
enum/struct/union name ('struct foo' and 'union foo' on the same .c file), in multiple CUs,
so we need to check again when disambiguating by adding a __N suffix.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 file changed