block and value codegen protos

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-04-26 10:28:42 +02:00
parent 13ec68bc4f
commit c692794eb5
2 changed files with 11 additions and 2 deletions

11
ast.c
View file

@ -181,4 +181,13 @@ void ast_function_delete(ast_function *self)
/* AST codegen aprt
*/
/* TODO */
/* Some dummies so it compiles... */
bool ast_value_codegen(ast_value *self, ast_function *func, ir_value **out)
{
return false;
}
bool ast_block_codegen(ast_block *self, ast_function *func, ir_value **out)
{
return false;
}

2
ast.h
View file

@ -148,7 +148,7 @@ void ast_block_delete(ast_block*);
MEM_VECTOR_PROTO(ast_block, ast_value*, locals);
MEM_VECTOR_PROTO(ast_block, ast_expression*, exprs);
bool ast_block_codegen(ast_block*, ir_function*, ir_value**);
bool ast_block_codegen(ast_block*, ast_function*, ir_value**);
/* Function
*