#include void scc_ir2mcode_init(scc_ir2mcode_ctx_t *ctx, scc_ir_cprog_t *cprog, sccf_builder_t *builder, scc_mcode_arch_t arch) { ctx->cprog = cprog; ctx->builder = builder; scc_mcode_init(&ctx->sect_mcode, arch); scc_vec_init(ctx->sect_data); sccf_builder_init(ctx->builder); } void scc_ir2mcode_drop(scc_ir2mcode_ctx_t *ctx) { // TODO drop all objs scc_ir_cprog_drop(ctx->cprog); } void scc_ir2amd64(scc_ir2mcode_ctx_t *ctx); void scc_ir2mcode(scc_ir2mcode_ctx_t *ctx) { scc_ir2amd64(ctx); }