Skip to content

Commit

Permalink
Fix independent FE compilation: buildClosure and retStyle
Browse files Browse the repository at this point in the history
Both functions were turned into free functions in commit
022c70d. Since there are
backend dependencies in toir.c, the patch add stubs in
gluestub.c.
  • Loading branch information
ltcmelo committed Jul 29, 2014
1 parent d8f5d6a commit f527722
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/gluestub.c
Expand Up @@ -379,3 +379,15 @@ int binary(const char *p, const char **tab, int n)
return i;
return -1;
}

// toir

void buildClosure(FuncDeclaration *fd, IRState *irs)
{
assert(0);
}

RET retStyle(TypeFunction *tf)
{
return RETregs;
}

0 comments on commit f527722

Please sign in to comment.