summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorTom Harley2019-12-23 01:32:39 +0000
committerTom Harley2019-12-23 01:32:39 +0000
commit7bc67b95161a34f8eca635d4000d9602508a9243 (patch)
tree585b3778dc1967832390e5829e4b3909b4184a2c /scope.c
parentAdd basics for interpreter; add CLI options (diff)
downloadsinter-7bc67b95161a34f8eca635d4000d9602508a9243.tar.gz
sinter-7bc67b95161a34f8eca635d4000d9602508a9243.zip

checkpoint

Diffstat (limited to 'scope.c')
-rw-r--r--scope.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 87ef76e..9b65a38 100644
--- a/scope.c
+++ b/scope.c
@@ -45,6 +45,8 @@ void scope_add_entry(scope sc, char *id, LLVMValueRef val, LLVMTypeRef type) {
scope_entry *new_entry = malloc(sizeof (*new_entry));
if (!new_entry) error(GENERAL_ERROR, "cannot malloc?");
+ debug("adding entry for %s\n", id);
+
new_entry->id = strdup(id);
new_entry->value = val;
new_entry->type = type;