summaryrefslogtreecommitdiff
path: root/codegen.c
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2026-03-26 20:27:19 -0700
committerCarson Fleming <cflems@cflems.net>2026-03-26 20:28:40 -0700
commit21f688c1eac5fb09ae68fd9b3cfcff687de36601 (patch)
tree66b819149532a58cec305cec73b916f9d3025f88 /codegen.c
parent59a0cdabe9a67d5c3f296f85d29f43dcadace363 (diff)
downloadccc-21f688c1eac5fb09ae68fd9b3cfcff687de36601.tar.gz
scope inheritance
Diffstat (limited to 'codegen.c')
-rw-r--r--codegen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/codegen.c b/codegen.c
index cfb4cca..d6f212a 100644
--- a/codegen.c
+++ b/codegen.c
@@ -184,6 +184,8 @@ void emit_code(const struct root_node* ast, const char* path) {
fprintf(outfile, "section .text\n");
scope_push(&scope);
+ /* TODO: register all basic types */
+
/* output all non-static function declarations as globals */
const struct root_node* node = ast;
while (node != NULL) {