aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/regalloc.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-16 12:31:11 +0100
committerlemon <lsof@mailbox.org>2025-11-19 10:40:31 +0100
commitf5296e1324f0ecf397e752793a9772e71a9ba31a (patch)
treebbf151d165b406d31984ab93f530908da2814580 /ir/regalloc.c
parente9dd9115e21c0a731c1b84120d2013aef9b0b1c9 (diff)
debug output to stdout
Diffstat (limited to 'ir/regalloc.c')
-rw-r--r--ir/regalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/regalloc.c b/ir/regalloc.c
index ca3ddcc..036c710 100644
--- a/ir/regalloc.c
+++ b/ir/regalloc.c
@@ -3,7 +3,7 @@
/** Implements linear scan register allocation **/
#if 1
-#define DBG(...) if(ccopt.dbg.r) efmt(__VA_ARGS__)
+#define DBG(...) if(ccopt.dbg.r) bfmt(ccopt.dbgout, __VA_ARGS__)
#else
#define DBG(...) ((void)0)
#endif
@@ -1206,7 +1206,7 @@ regalloc(struct function *fn)
fillblkids(fn);
if (ccopt.dbg.r) {
- efmt("<< Before linear scan >>\n");
+ DBG("<< Before linear scan >>\n");
irdump(fn);
}