public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3394] dwarf: externalize lookup_type_die
@ 2021-09-07 21:06 David Faust
  0 siblings, 0 replies; only message in thread
From: David Faust @ 2021-09-07 21:06 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:81eced213c8d69c6a031712d81d245da423992dc

commit r12-3394-g81eced213c8d69c6a031712d81d245da423992dc
Author: David Faust <david.faust@oracle.com>
Date:   Tue Aug 3 09:58:48 2021 -0700

    dwarf: externalize lookup_type_die
    
    Expose the function lookup_type_die in dwarf2out, so that it can be used
    by CTF/BTF when adding BPF CO-RE information. The function is now
    non-static, and an extern prototype is added in dwarf2out.h.
    
    gcc/ChangeLog:
    
            * dwarf2out.c (lookup_type_die): Function is no longer static.
            * dwarf2out.h: Expose it here.

Diff:
---
 gcc/dwarf2out.c | 3 +--
 gcc/dwarf2out.h | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 72cd1f51380..9876750e4f9 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -3740,7 +3740,6 @@ static bool remove_AT (dw_die_ref, enum dwarf_attribute);
 static void remove_child_TAG (dw_die_ref, enum dwarf_tag);
 static void add_child_die (dw_die_ref, dw_die_ref);
 static dw_die_ref new_die (enum dwarf_tag, dw_die_ref, tree);
-static dw_die_ref lookup_type_die (tree);
 static dw_die_ref strip_naming_typedef (tree, dw_die_ref);
 static dw_die_ref lookup_type_die_strip_naming_typedef (tree);
 static void equate_type_number_to_die (tree, dw_die_ref);
@@ -5838,7 +5837,7 @@ new_die (enum dwarf_tag tag_value, dw_die_ref parent_die, tree t)
 
 /* Return the DIE associated with the given type specifier.  */
 
-static inline dw_die_ref
+dw_die_ref
 lookup_type_die (tree type)
 {
   dw_die_ref die = TYPE_SYMTAB_DIE (type);
diff --git a/gcc/dwarf2out.h b/gcc/dwarf2out.h
index b2152a53bf9..312a9909784 100644
--- a/gcc/dwarf2out.h
+++ b/gcc/dwarf2out.h
@@ -417,6 +417,7 @@ extern dw_die_ref new_die_raw (enum dwarf_tag);
 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 dw_get_die_child (dw_die_ref);
 extern dw_die_ref dw_get_die_sib (dw_die_ref);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-07 21:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07 21:06 [gcc r12-3394] dwarf: externalize lookup_type_die David Faust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).