remove new_irep

This commit is contained in:
Yuichi Nishiwaki 2014-02-01 13:44:43 +09:00
parent 3b53cc8a6b
commit 54b318f3e1
1 changed files with 1 additions and 17 deletions

View File

@ -19,22 +19,6 @@
# error enable PIC_NONE_IS_FALSE # error enable PIC_NONE_IS_FALSE
#endif #endif
static struct pic_irep *
new_irep(pic_state *pic)
{
struct pic_irep *irep;
irep = (struct pic_irep *)pic_obj_alloc(pic, sizeof(struct pic_irep), PIC_TT_IREP);
irep->code = NULL;
irep->clen = 0;
irep->argc = -1;
irep->localc = -1;
irep->varg = false;
irep->irep = NULL;
irep->pool = NULL;
return irep;
}
static pic_sym * static pic_sym *
analyze_args(pic_state *pic, pic_value args, bool *varg, int *argc, int *localc) analyze_args(pic_state *pic, pic_value args, bool *varg, int *argc, int *localc)
{ {
@ -1031,7 +1015,7 @@ pop_codegen_context(codegen_state *state)
struct pic_irep *irep; struct pic_irep *irep;
/* create irep */ /* create irep */
irep = new_irep(pic); irep = (struct pic_irep *)pic_obj_alloc(pic, sizeof(struct pic_irep), PIC_TT_IREP);
irep->varg = state->cxt->varg; irep->varg = state->cxt->varg;
irep->argc = state->cxt->argc; irep->argc = state->cxt->argc;
irep->localc = state->cxt->localc; irep->localc = state->cxt->localc;