From 579d13ffb46d2587a3dac62b30e6b958544e6de5 Mon Sep 17 00:00:00 2001 From: avg Date: Sat, 6 Jul 2013 08:43:49 +0000 Subject: [PATCH] MFC r248641: libdwarf: anonymous types are expected to have empty type names git-svn-id: svn://svn.freebsd.org/base/stable/8@252873 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- lib/libdwarf/dwarf_die.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libdwarf/dwarf_die.c b/lib/libdwarf/dwarf_die.c index 143e7082d..486811efd 100644 --- a/lib/libdwarf/dwarf_die.c +++ b/lib/libdwarf/dwarf_die.c @@ -29,8 +29,6 @@ #include #include "_libdwarf.h" -static const char *anon_name = "__anon__"; - int dwarf_die_add(Dwarf_CU cu, int level, uint64_t offset, uint64_t abnum, Dwarf_Abbrev a, Dwarf_Die *diep, Dwarf_Error *err) { @@ -57,7 +55,7 @@ dwarf_die_add(Dwarf_CU cu, int level, uint64_t offset, uint64_t abnum, Dwarf_Abb die->die_abnum = abnum; die->die_a = a; die->die_cu = cu; - die->die_name = anon_name; + die->die_name = ""; /* Initialise the list of attribute values. */ STAILQ_INIT(&die->die_attrval); -- 2.45.0