Example #1
0
static void pop_frame(compile_t* c)
{
  compile_frame_t* frame = c->frame;
  compile_locals_destroy(&frame->locals);

  c->frame = frame->prev;
  POOL_FREE(compile_frame_t, frame);
}
Example #2
0
File: codegen.c Project: dckc/ponyc
static void pop_frame(compile_t* c)
{
  compile_frame_t* frame = c->frame;
  compile_locals_destroy(&frame->locals);

  c->frame = frame->prev;

  if(c->frame != NULL)
    c->dwarf.has_source = c->frame->has_source;
  else
    c->dwarf.has_source = true;

  POOL_FREE(compile_frame_t, frame);
}