lang: remove references to old mie api

This commit is contained in:
2026-03-16 15:07:57 +00:00
parent c44e976979
commit 016ee11f75
15 changed files with 170 additions and 104 deletions

View File

@@ -1,8 +1,6 @@
#include "codegen.h"
#include <mie/ir/block.h>
#include <mie/ir/func.h>
#include <mie/ir/module.h>
struct match_codegen_state {
struct code_generator_state s_base;
@@ -30,7 +28,9 @@ static struct code_generator_result gen_block(
struct ivy_ast_node *node, size_t depth)
{
struct match_codegen_state *match = (struct match_codegen_state *)state;
#if 0
struct mie_func *func = mie_builder_get_current_func(gen->c_builder);
#endif
codegen_push_generator(gen, CODE_GENERATOR_BLOCK, 0, NULL);
return CODEGEN_RESULT_OK(0);
@@ -66,7 +66,9 @@ static struct code_generator_result value_received(
struct code_generator_value *value)
{
struct match_codegen_state *match = (struct match_codegen_state *)state;
#if 0
struct mie_func *func = mie_builder_get_current_func(gen->c_builder);
#endif
return CODEGEN_RESULT_OK(0);
}