mie: ir: op: remove redundant op_dialect pointer
This commit is contained in:
@@ -207,7 +207,7 @@ static void print_generic_op(struct mie_printer *printer, const struct mie_op *o
|
||||
if (op->op_flags & MIE_OP_F_OP_RESOLVED) {
|
||||
b_stream_write_fmt(
|
||||
printer->p_stream, NULL, "%s.%s",
|
||||
op->op_dialect->d_name, op->op_info->op_name);
|
||||
op->op_info->op_parent->d_name, op->op_info->op_name);
|
||||
} else {
|
||||
b_stream_write_string(printer->p_stream, op->op_name, NULL);
|
||||
}
|
||||
@@ -275,7 +275,7 @@ void mie_printer_print_op_name(struct mie_printer *printer, const struct mie_op
|
||||
if (printer->p_flags & MIE_PRINT_F_GENERIC) {
|
||||
generic = true;
|
||||
b_stream_write_char(printer->p_stream, '~');
|
||||
} else if (!strcmp(op->op_dialect->d_name, "builtin")) {
|
||||
} else if (!strcmp(op->op_info->op_parent->d_name, "builtin")) {
|
||||
builtin = true;
|
||||
}
|
||||
|
||||
@@ -286,7 +286,8 @@ void mie_printer_print_op_name(struct mie_printer *printer, const struct mie_op
|
||||
|
||||
if (generic || !builtin || !abbreviate) {
|
||||
b_stream_write_fmt(
|
||||
printer->p_stream, NULL, "%s.", op->op_dialect->d_name);
|
||||
printer->p_stream, NULL, "%s.",
|
||||
op->op_info->op_parent->d_name);
|
||||
}
|
||||
|
||||
b_stream_write_string(printer->p_stream, op->op_info->op_name, NULL);
|
||||
|
||||
Reference in New Issue
Block a user