Expose get_die_parent () so it can be used outside of dwarf2out.cc gcc/
* dwarf2out.cc (get_die_parent): Make non-static. * dwarf2out.h (get_die_parent): Add extern declaration here. --- gcc/dwarf2out.cc | 2 +- gcc/dwarf2out.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index c8c34db2b5a..ba6d91f95cf 100644 --- a/gcc/dwarf2out.cc +++ b/gcc/dwarf2out.cc @@ -5457,7 +5457,7 @@ get_AT (dw_die_ref die, enum dwarf_attribute attr_kind) /* Returns the parent of the declaration of DIE. */ -static dw_die_ref +dw_die_ref get_die_parent (dw_die_ref die) { dw_die_ref t; diff --git a/gcc/dwarf2out.h b/gcc/dwarf2out.h index 870b56a6a37..3be918edc21 100644 --- a/gcc/dwarf2out.h +++ b/gcc/dwarf2out.h @@ -453,6 +453,7 @@ extern dw_die_ref base_type_die (tree, bool); extern dw_die_ref lookup_decl_die (tree); extern dw_die_ref lookup_type_die (tree); +extern dw_die_ref get_die_parent (dw_die_ref); extern dw_die_ref dw_get_die_child (dw_die_ref); extern dw_die_ref dw_get_die_sib (dw_die_ref); extern enum dwarf_tag dw_get_die_tag (dw_die_ref); -- 2.40.1