Re: [PATCH 2/3] Handle simple inheritance in gengtype.

2013-09-20 Thread Michael Matz
Hi, On Fri, 20 Sep 2013, David Malcolm wrote: > Treat GTY structs that have a "desc" as being the root of an inheritance > hierarchy. Generate a switch on desc within the marking function with > cases for each subclass, visiting all fields of the type (including > inherited ones). Yay! Thanks

[PATCH 2/3] Handle simple inheritance in gengtype.

2013-09-20 Thread David Malcolm
Treat GTY structs that have a "desc" as being the root of an inheritance hierarchy. Generate a switch on desc within the marking function with cases for each subclass, visiting all fields of the type (including inherited ones). Don't create marking functions for subclasses, instead using the base