printf: Fixup printing "const" early with "const void"

When printing const more early we're not considering "const void *", fix
it.

Fixes: ccd67bdb20 ("fprintf: Print "const" for class members more early, in type__fprintf()")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2019-05-01 14:56:33 -04:00
parent 68f261d8df
commit 568dae4bd4
1 changed files with 4 additions and 1 deletions

View File

@ -711,6 +711,7 @@ next_type:
}
/* Fall Thru */
default:
print_default:
printed += fprintf(fp, "%-*s %s", tconf.type_spacing,
tag__name(type, cu, tbf, sizeof(tbf), &tconf),
name);
@ -725,7 +726,9 @@ next_type:
printed += const_printed;
}
type = cu__type(cu, type->type);
goto next_type;
if (type)
goto next_type;
goto print_default;
case DW_TAG_array_type:
printed += array_type__fprintf(type, cu, name, &tconf, fp);