core: enumeration__emit_definitions() doesn't need a 'cu' argument
With the conversion of ->name members to plain char strings, no need to use 'cu' to get the old string_t index and find the per-cu string table. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
0947d6e795
commit
3ff11828fe
|
@ -70,7 +70,7 @@ static struct type *type_emissions__find_fwd_decl(const struct type_emissions *e
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int enumeration__emit_definitions(struct tag *tag, struct cu *cu,
|
static int enumeration__emit_definitions(struct tag *tag,
|
||||||
struct type_emissions *emissions,
|
struct type_emissions *emissions,
|
||||||
const struct conf_fprintf *conf,
|
const struct conf_fprintf *conf,
|
||||||
FILE *fp)
|
FILE *fp)
|
||||||
|
@ -154,12 +154,10 @@ static int typedef__emit_definitions(struct tag *tdef, struct cu *cu,
|
||||||
if (type__name(ctype) == NULL) {
|
if (type__name(ctype) == NULL) {
|
||||||
fputs("typedef ", fp);
|
fputs("typedef ", fp);
|
||||||
conf.suffix = type__name(def);
|
conf.suffix = type__name(def);
|
||||||
enumeration__emit_definitions(type, cu, emissions,
|
enumeration__emit_definitions(type, emissions, &conf, fp);
|
||||||
&conf, fp);
|
|
||||||
goto out;
|
goto out;
|
||||||
} else
|
} else
|
||||||
enumeration__emit_definitions(type, cu, emissions,
|
enumeration__emit_definitions(type, emissions, &conf, fp);
|
||||||
&conf, fp);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DW_TAG_structure_type:
|
case DW_TAG_structure_type:
|
||||||
|
@ -248,8 +246,7 @@ next_indirection:
|
||||||
struct conf_fprintf conf = {
|
struct conf_fprintf conf = {
|
||||||
.suffix = NULL,
|
.suffix = NULL,
|
||||||
};
|
};
|
||||||
return enumeration__emit_definitions(type, cu, emissions,
|
return enumeration__emit_definitions(type, emissions, &conf, fp);
|
||||||
&conf, fp);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DW_TAG_structure_type:
|
case DW_TAG_structure_type:
|
||||||
|
|
Loading…
Reference in New Issue