Marc-André Lureau <[email protected]> writes:

> Call gen_type_infos() after gen_introspect(), passing the name map so
> type-info constants get the correct masked names.
>
> Signed-off-by: Marc-André Lureau <[email protected]>
> ---
>  scripts/qapi/backend.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/qapi/backend.py b/scripts/qapi/backend.py
> index 49ae6ecdd33..353f7801149 100644
> --- a/scripts/qapi/backend.py
> +++ b/scripts/qapi/backend.py
> @@ -8,6 +8,7 @@
>  from .features import gen_features
>  from .introspect import gen_introspect
>  from .schema import QAPISchema
> +from .type_infos import gen_type_infos
>  from .types import gen_types
>  from .visit import gen_visit
>  
> @@ -62,4 +63,5 @@ def generate(self,
>          gen_visit(schema, output_dir, prefix, builtins)
>          gen_commands(schema, output_dir, prefix, gen_tracing)
>          gen_events(schema, output_dir, prefix)
> -        gen_introspect(schema, output_dir, prefix, unmask)
> +        name_map = gen_introspect(schema, output_dir, prefix, unmask)
> +        gen_type_infos(schema, output_dir, prefix, builtins, name_map)

Squash this into the previous patch?


Reply via email to