commit 0e08446b45ed4de0faa2573ca1c523e83bed08e5
parent e4c1557aa1292034f66d5e0e92061719e8a46c2e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 4 Jan 2025 14:23:51 +0100
cc2: Move ifdef guards in cfg.c
These guards should remove only the debug code and for that
reason we should not remove the jtarget() and jtargetbb().
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cmd/scc-cc/cc2/cfg.c b/src/cmd/scc-cc/cc2/cfg.c
@@ -15,9 +15,6 @@ struct cfg {
static struct cfg cfg;
-#ifndef NDEBUG
-#include <stdio.h>
-
static Node *
jtarget(Node *np)
{
@@ -30,6 +27,9 @@ jtargetbb(Node *np)
return jtarget(np)->bb;
}
+#ifndef NDEBUG
+#include <stdio.h>
+
static void
prbb(Block *bb)
{