summaryrefslogtreecommitdiff
path: root/codegen.c
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2026-08-04 23:52:08 -0400
committerCarson Fleming <cflems@cflems.net>2026-08-04 23:52:08 -0400
commitb6861148021df1682f424d3ce8e8051b80889b03 (patch)
treed36a8dc9853ba7eddd58acf814a1caf9c0e1acfa /codegen.c
parentebe7f44385c4be54afd2993d54ce6352f612f9fa (diff)
downloadccc-b6861148021df1682f424d3ce8e8051b80889b03.tar.gz
unify hashmap type
Diffstat (limited to 'codegen.c')
-rw-r--r--codegen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/codegen.c b/codegen.c
index d9b2962..bca0411 100644
--- a/codegen.c
+++ b/codegen.c
@@ -1,4 +1,5 @@
#include "ccc.h"
+#include "hashmap.h"
#include "codegen.h"
#include "scope.h"
#include "register.h"
@@ -28,7 +29,7 @@ static struct reg* MULDIV_OVERFLOW_REG = &RDX;
#define FULL_REG_SZ 8
#define WORD_SZ 2
-static struct dseg dseg;
+static struct hash_map dseg;
static struct scope* scope;
static const struct fn_decl_node* active_fn;
static integral_t branch_counter = 0;