From 44e4ed6a3cb9039c1251bec2d68158b68fe3fad8 Mon Sep 17 00:00:00 2001 From: David Faust Date: Tue, 3 Aug 2021 10:00:42 -0700 Subject: ctfc: externalize ctf_dtd_lookup Expose the function ctf_dtd_lookup, so that it can be used by the BPF CO-RE machinery. The function is no longer static, and an extern prototype is added in ctfc.h. gcc/ChangeLog: * ctfc.c (ctf_dtd_lookup): Function is no longer static. * ctfc.h: Analogous change. --- gcc/ctfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ctfc.c') diff --git a/gcc/ctfc.c b/gcc/ctfc.c index 1a6ddb8..db6ba03 100644 --- a/gcc/ctfc.c +++ b/gcc/ctfc.c @@ -132,7 +132,7 @@ ctf_dtd_insert (ctf_container_ref ctfc, ctf_dtdef_ref dtd) /* Lookup CTF type given a DWARF die for the type. */ -static ctf_dtdef_ref +ctf_dtdef_ref ctf_dtd_lookup (const ctf_container_ref ctfc, const dw_die_ref type) { ctf_dtdef_t entry; -- cgit v1.1