frontend: remove references to old mie api

This commit is contained in:
2026-03-16 15:08:59 +00:00
parent 8816a13a25
commit 247f29ca62
6 changed files with 68 additions and 43 deletions

View File

@@ -1,10 +1,10 @@
#include "cmd.h"
#include <ctype.h>
#include <errno.h>
#include <fx/cmd.h>
#include <fx/ds/string.h>
#include <fx/term.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <ivy/asm/assembler.h>
#include <ivy/asm/instr.h>
@@ -305,7 +305,8 @@ static enum ivy_status dump_class(
printf("type:variable\n");
struct ivy_asm_constpool_value *var_ident = NULL;
status = ivy_asm_constpool_reader_read_value(
pool, fx_i32_btoh(entry.e_mvar.m_ident), &var_ident);
pool, fx_i32_btoh(entry.e_mvar.m_ident),
&var_ident);
if (status != IVY_OK) {
break;
}
@@ -654,17 +655,20 @@ static int disassemble(
bool header = fx_arglist_get_count(args, OPT_HEADER, FX_COMMAND_INVALID_ID)
> 0;
bool sections
= fx_arglist_get_count(args, OPT_SECTIONS, FX_COMMAND_INVALID_ID) > 0;
= fx_arglist_get_count(args, OPT_SECTIONS, FX_COMMAND_INVALID_ID)
> 0;
bool dump = fx_arglist_get_count(args, OPT_DUMP, FX_COMMAND_INVALID_ID) > 0;
bool constpool
= fx_arglist_get_count(args, OPT_CONSTPOOL, FX_COMMAND_INVALID_ID)
> 0;
bool classes
= fx_arglist_get_count(args, OPT_CLASSES, FX_COMMAND_INVALID_ID) > 0;
= fx_arglist_get_count(args, OPT_CLASSES, FX_COMMAND_INVALID_ID)
> 0;
const char *in_path = NULL;
fx_arglist_get_string(args, FX_COMMAND_INVALID_ID, ARG_BIN_FILE, 0, &in_path);
fx_arglist_get_string(
args, FX_COMMAND_INVALID_ID, ARG_BIN_FILE, 0, &in_path);
if (!in_path) {
fx_err("no input file specified.");
return -1;
@@ -717,7 +721,7 @@ static int disassemble(
return 0;
}
B_COMMAND(CMD_DISASSEMBLE, CMD_ROOT)
FX_COMMAND(CMD_DISASSEMBLE, CMD_ROOT)
{
FX_COMMAND_NAME("disassemble");
FX_COMMAND_SHORT_NAME('D');