summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dwflpp.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index 192973f2..dcf04678 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -937,10 +937,8 @@ dwflpp::iterate_over_labels (Dwarf_Die *begin_die,
static string function_name = dwarf_diename (begin_die);
do
{
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = dwarf_attr (&die, DW_AT_name, &attr_mem);
int tag = dwarf_tag(&die);
- const char *name = dwarf_formstring (attr);
+ const char *name = dwarf_diename (&die);
if (name == 0)
continue;
switch (tag)