FreeBSD/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
/*
 * Manufacture a void type.  Used for gcc-emitted stabs, where the lack of a
 * type reference implies a reference to a void type.  A void *, for example
 * will be represented by a pointer die without a DW_AT_type.  CTF requires
 * that pointer nodes point to something, so we'll create a void for use as
 * the target.  Note that the DWARF data may already create a void type.  Ours
 * would then be a duplicate, but it'll be removed in the self-uniquification
 * merge performed at the completion of DWARF->tdesc conversion.
 */
Manufacture a void type.  Used for gcc-emitted stabs, where the lack of a
type reference implies a reference to a void type.  A void *, for example
will be represented by a pointer die without a DW_AT_type.  CTF requires
that pointer nodes point to something, so we'll create a void for use as
the target.  Note that the DWARF data may already create a void type.  Ours
would then be a duplicate, but it'll be removed in the self-uniquification
merge performed at the completion of DWARF->tdesc conversion.
Manufacture a void type . Used for gcc - emitted stabs where the lack of a type reference implies a reference to a void type . A void * for example will be represented by a pointer die without a DW_AT_type . CTF requires that pointer nodes point to something so we ' ll create a void for use as the target . Note that the DWARF data may already create a void type . Ours would then be a duplicate but it ' ll be removed in the self - uniquification merge performed at the completion of DWARF - > tdesc conversion .
static tdesc_t *
tdesc_intr_void(dwarf_t *dw)
{
	if (dw->dw_void == NULL)
		dw->dw_void = tdesc_intr_common(dw, TID_VOID, "void", 0);
	return (dw->dw_void);
}
static tdesc_t * tdesc_intr_void ( dwarf_t * dw ) { if ( dw -> dw_void == NULL ) dw -> dw_void = tdesc_intr_common ( dw , TID_VOID , " " , 0 ) ; return ( dw -> dw_void ) ; }
Manufacture a void type.
Manufacture a void type .