about summary refs log tree commit diff
path: root/boot/visit/tree.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-03 19:54:15 +0200
committerMel <mel@rnrd.eu>2026-05-03 19:54:15 +0200
commit74ffd7a95c0894a96ab984e2c4d2cd9c75539af0 (patch)
treeef8db3b3432dc1203b12079247c982892c7d21d1 /boot/visit/tree.c
parent5211970448a05205b67d7604ad5e4e3925e4ddef (diff)
downloadcatskill-74ffd7a95c0894a96ab984e2c4d2cd9c75539af0.tar.zst
catskill-74ffd7a95c0894a96ab984e2c4d2cd9c75539af0.zip
IR visit system and pretty printer
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/visit/tree.c')
-rw-r--r--boot/visit/tree.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/boot/visit/tree.c b/boot/visit/tree.c
index 001cd36..48db391 100644
--- a/boot/visit/tree.c
+++ b/boot/visit/tree.c
@@ -69,17 +69,6 @@ struct Tree_Visit_Table
     void (*visit_pragma_node)(struct Tree_Visit* visitor, struct Tree_Pragma* node);
 };
 
-#define VISIT(visit_function, node) visit->table->visit_function(visit, node);
-
-#define VISIT_MAYBE(visit_function, node) \
-    if (node) visit->table->visit_function(visit, node)
-
-#define DATA_FOR_VISIT(type, name)        \
-    type* name = (type*)visit->user_data; \
-    if (!name) { failure("visit user data is NULL for " #name); }
-
-// tree_walk functions are the default traversal mechanism
-
 // define a tree_walk function which goes nowhere.
 #define TREE_WALK_LEAF_FUNCTION(name, type) \
     void name(struct Tree_Visit* visit, type node) {}