summaryrefslogtreecommitdiffstats
path: root/dwarf_wrappers.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dwarf_wrappers.cxx')
-rw-r--r--dwarf_wrappers.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwarf_wrappers.cxx b/dwarf_wrappers.cxx
index fe8ead07..7b64aac5 100644
--- a/dwarf_wrappers.cxx
+++ b/dwarf_wrappers.cxx
@@ -125,10 +125,8 @@ dwarf_type_name(Dwarf_Die *type_die, ostringstream& o)
// recurse into the referent type
// if it can't be named, just call it "void"
- Dwarf_Attribute subtype_attr;
Dwarf_Die subtype_die;
- if (!dwarf_attr_integrate(type_die, DW_AT_type, &subtype_attr)
- || !dwarf_formref_die(&subtype_attr, &subtype_die)
+ if (!dwarf_attr_die(type_die, DW_AT_type, &subtype_die)
|| !dwarf_type_name(&subtype_die, o))
o.str("void"), o.seekp(4);