From f5296e1324f0ecf397e752793a9772e71a9ba31a Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 16 Nov 2025 12:31:11 +0100 Subject: debug output to stdout --- ir/regalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ir/regalloc.c') 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); } -- cgit v1.2.3