]> gcc.gnu.org Git - gcc.git/commit
btf: add BTF_KIND_FUNC traversal function.
authorCupertino Miranda <cupertino.miranda@oracle.com>
Mon, 12 Feb 2024 17:36:21 +0000 (17:36 +0000)
committerDavid Faust <david.faust@oracle.com>
Tue, 5 Mar 2024 18:29:52 +0000 (10:29 -0800)
commit1ab0c08b0885fa7549a635f9bae1422499562fc8
treefa38c153d8641339fa285daa628f11e2300a7c85
parent193966aab3bba1ca27630a23f4b575c53be9af03
btf: add BTF_KIND_FUNC traversal function.

The patch adds a traversal function to traverse all BTF_KIND_FUNC nodes
with a callback function. Used for .BTF.ext section content creation.

gcc/ChangeLog:

* btfout.cc (output_btf_func_types): Use FOR_EACH_VEC_ELT.
(traverse_btf_func_types): Define function.
* ctfc.h (funcs_traverse_callback): Typedef for function
prototype.
(traverse_btf_func_types): Add prototype.

(cherry picked from commit 69a3ce49bda929e1ffbc1fc1123f5f2485ec944d)
gcc/btfout.cc
gcc/ctfc.h
This page took 0.06644 seconds and 6 git commands to generate.