ir: validate field types on field creation
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 8 Feb 2016 07:05:35 +0000 (02:05 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2016 20:15:48 +0000 (15:15 -0500)
commit81e36faca01ab2766a92cabd5a375e2982e9e446
tree98b09083a9afca54b370e2b42dbbb3684c39b042
parent364747d64a1a28873316e3933462e3373bbf15c8
ir: validate field types on field creation

This patch removes the validation that is done when adding
fields to structure/variant field types, and when creating
array/sequence field types with specific element types. This
is needed because a variant with an unset tag type may be
created and thus exist in any of those compound types. This
variant will be resolved when the time comes.

A valid field type is still required when creating a concrete
field out of it and when serializing it.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-fields.c
formats/ctf/ir/event-types.c
include/babeltrace/ctf-ir/event-types-internal.h
include/babeltrace/ctf-ir/event-types.h
This page took 0.025561 seconds and 4 git commands to generate.