From c692794eb59e9ea97ecf47903ce7b7c90eab5268 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Thu, 26 Apr 2012 10:28:42 +0200 Subject: [PATCH] block and value codegen protos --- ast.c | 11 ++++++++++- ast.h | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ast.c b/ast.c index c52a864..5b4b1de 100644 --- a/ast.c +++ b/ast.c @@ -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; +} diff --git a/ast.h b/ast.h index 1e2f0d1..4cbd453 100644 --- a/ast.h +++ b/ast.h @@ -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 * -- 2.39.2