summaryrefslogtreecommitdiffstats
path: root/scripts/tracetool
diff options
context:
space:
mode:
authorEric Blake2015-10-13 06:22:29 +0200
committerMarkus Armbruster2015-10-15 08:39:08 +0200
commit46292ba75c515baf733df18644052b2ce9492728 (patch)
treee2338c12c4ff9ae52c8d1d1861c1ef93526ed840 /scripts/tracetool
parentqapi: Lazy creation of array types (diff)
downloadqemu-46292ba75c515baf733df18644052b2ce9492728.tar.gz
qemu-46292ba75c515baf733df18644052b2ce9492728.tar.xz
qemu-46292ba75c515baf733df18644052b2ce9492728.zip
qapi: Create simple union type member earlier
For simple unions, we were creating the implicit 'type' tag member during the QAPISchemaObjectTypeVariants constructor. This is different from every other implicit QAPISchemaEntity object, which get created by QAPISchema methods. Hoist the creation to the caller (renaming _make_tag_enum() to _make_implicit_tag()), and pass the entity rather than the string name, so that we have the nice property that no entities are created as a side effect within a different entity. A later patch will then have an easier time of associating location info with each entity creation. No change to generated code. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1444710158-8723-10-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/tracetool')
0 files changed, 0 insertions, 0 deletions