aboutsummaryrefslogtreecommitdiff
path: root/gcc/ctfc.h
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2021-08-03 10:00:42 -0700
committerDavid Faust <david.faust@oracle.com>2021-09-07 13:48:58 -0700
commit44e4ed6a3cb9039c1251bec2d68158b68fe3fad8 (patch)
treef9542448c658c4e6c532fcd649b408c418aa9542 /gcc/ctfc.h
parent81eced213c8d69c6a031712d81d245da423992dc (diff)
downloadgcc-44e4ed6a3cb9039c1251bec2d68158b68fe3fad8.zip
gcc-44e4ed6a3cb9039c1251bec2d68158b68fe3fad8.tar.gz
gcc-44e4ed6a3cb9039c1251bec2d68158b68fe3fad8.tar.bz2
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.
Diffstat (limited to 'gcc/ctfc.h')
-rw-r--r--gcc/ctfc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ctfc.h b/gcc/ctfc.h
index 39c5270..825570d 100644
--- a/gcc/ctfc.h
+++ b/gcc/ctfc.h
@@ -388,7 +388,10 @@ extern bool ctf_type_exists (ctf_container_ref, dw_die_ref, ctf_id_t *);
extern void ctf_add_cuname (ctf_container_ref, const char *);
-extern ctf_dvdef_ref ctf_dvd_lookup (const ctf_container_ref, dw_die_ref);
+extern ctf_dtdef_ref ctf_dtd_lookup (const ctf_container_ref ctfc,
+ dw_die_ref die);
+extern ctf_dvdef_ref ctf_dvd_lookup (const ctf_container_ref ctfc,
+ dw_die_ref die);
extern const char * ctf_add_string (ctf_container_ref, const char *,
uint32_t *, int);