diff options
Diffstat (limited to 'src/codegen.c')
| -rw-r--r-- | src/codegen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c index da2cd17..82c9c96 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -546,7 +546,9 @@ void codegen_stmt(CodeGen* g, AstNode* ast) { void codegen_func(CodeGen* g, AstNode* ast) { g->current_func = ast; - fprintf(g->out, ".globl %s\n", ast->name); + if (!ast->node_function_is_static) { + fprintf(g->out, ".globl %s\n", ast->name); + } fprintf(g->out, "%s:\n", ast->name); codegen_func_prologue(g, ast); |
