qapi-types: Don't filter out expressions with 'gen'

Useless, because it can only occur in commands, and we're not dealing
with commands here.

Backports commit 4f3568002393380558705397bda4cd5f224ffe29 from qemu
This commit is contained in:
Markus Armbruster 2018-02-19 15:48:49 -05:00 committed by Lioncash
parent ed3da56d26
commit 9ce13ce6a3
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -316,7 +316,6 @@ fdecl.write(mcgen('''
'''))
exprs = parse_schema(input_file)
exprs = filter(lambda expr: not expr.has_key('gen'), exprs)
fdecl.write(guardstart("QAPI_TYPES_BUILTIN_STRUCT_DECL"))
for typename in builtin_types.keys():