From 74ffd7a95c0894a96ab984e2c4d2cd9c75539af0 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 3 May 2026 19:54:15 +0200 Subject: IR visit system and pretty printer Signed-off-by: Mel --- boot/visit/tree.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'boot/visit/tree.c') 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) {} -- cgit 1.4.1