language_lookup_primitive_type, std::function -> gdb::function_view
authorPedro Alves <pedro@palves.net>
Mon, 16 Nov 2020 19:15:00 +0000 (19:15 +0000)
committerPedro Alves <pedro@palves.net>
Fri, 20 Nov 2020 13:27:01 +0000 (13:27 +0000)
commitcbbcd7a716d7f1f65c57aa6ba6e034ecb9a78378
treed2d5bd43aaa5a9adf354ff9f17945c285bc4ce04
parente6f6aa8d184c38230d9acd91a49aa0cbe3f37e42
language_lookup_primitive_type, std::function -> gdb::function_view

gdb/ChangeLog:

* language.c (language_arch_info::lookup_primitive_type): Use
gdb::function_view instead of gdb::function.
(template language_lookup_primitive_type): Rename to ...
(language_lookup_primitive_type_1): ... this, and make static.
(language_lookup_primitive_type(const struct language_defn *,
struct gdbarch *, const char *): Make non-template.
(language_lookup_primitive_type(const struct language_defn *,
struct gdbarch *, std::function<bool (struct type *)>): Make
non-template and use gdb::function_view.
* language.h (language_arch_info::lookup_primitive_type): Use
gdb::function_view instead of std::function.
(language_lookup_primitive_type): No longer template.
* opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
lambda instead of a std::function.
gdb/ChangeLog
gdb/language.c
gdb/language.h
gdb/opencl-lang.c
This page took 0.024714 seconds and 4 git commands to generate.