diff options
author | David Faust <david.faust@oracle.com> | 2022-11-07 10:40:01 -0800 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2022-11-08 08:37:04 -0800 |
commit | 564b11184650a494d97d9e89b984664ae142a24a (patch) | |
tree | 36f7d6345be042ad8840d70de6e0ea6c7f17efd7 /gcc/range-op-float.cc | |
parent | 9d96a286992a0fd9ecdd6a58cd9a413c8c49f477 (diff) | |
download | gcc-564b11184650a494d97d9e89b984664ae142a24a.zip gcc-564b11184650a494d97d9e89b984664ae142a24a.tar.gz gcc-564b11184650a494d97d9e89b984664ae142a24a.tar.bz2 |
bpf: Use enum for resolved overloaded builtins
Change several places in the eBPF backend dealing with overloaded
built-in functions to consistently use the enum bpf_builtins type,
rather than variously using integer constants or booleans. The result is
eaiser to read and extend.
gcc/
* config/bpf/bpf.cc (struct core_walk_data): Add field `which'...
(bpf_resolve_overloaded_builtin): ... set it here. Use values of enum
bpf_builtins for error checks.
(bpf_core_walk): Use values of enum bpf_builtins.
(bpf_core_newdecl): Likewise.
(bpf_expand_builtin): Likewise.
Diffstat (limited to 'gcc/range-op-float.cc')
0 files changed, 0 insertions, 0 deletions