summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWormHeamer2025-08-10 23:05:24 -0400
committerWormHeamer2025-08-10 23:05:24 -0400
commit866d14b5150c356718916fe8b7cfac45aea283ce (patch)
tree955d069c8ff671a9d0c6de5f1e8ea8ec8de591c5 /main.c
parent60aadb12969755727709bf293e140ef9d8301d43 (diff)
remove some debug printfs
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/main.c b/main.c
index 6134efa..a4d1b51 100644
--- a/main.c
+++ b/main.c
@@ -226,7 +226,6 @@ void merge_scope(Lexer *l, Proc *p, Node *region, ScopeNameList *before, ScopeNa
if (yes->node == b4->node && no->node == b4->node) continue;
phi = node_new(p, N_PHI, region, yes->node, no->node);
}
- fprintf(stderr, "phi('%.*s', %d, %d)\n", (int)b4->name.n, b4->name.s, phi->in.data[1]->id, phi->in.data[2]->id);
phi = node_peephole(phi, p, l);
NameBinding *b = scope_find(&p->scope, b4->name);
assert(b);
@@ -406,7 +405,6 @@ Node *find_return(Node *n) {
}
void proc_opt_fwd(Proc *p, Lexer *l, Node *n) {
- fprintf(stderr, "%d %s\n", n->id, node_type_name(n->op));
if (n->walked == 2) return;
n->walked = 2;
switch (n->op) {
@@ -457,7 +455,6 @@ void proc_opt_fwd(Proc *p, Lexer *l, Node *n) {
}
void proc_opt(Proc *p, Lexer *l) {
- fprintf(stderr, "%ld\n", p->stop->in.len);
if (p->stop->in.len == 0) {
if (p->ret_type.t != T_NONE) {