From 8608070c077b067611b06dba72a4115a2094e124 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 19 Jun 2023 09:26:36 +0200 Subject: don't try to compile when debugging IR --- irdump.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'irdump.c') diff --git a/irdump.c b/irdump.c index 3736826..2d0dbf4 100644 --- a/irdump.c +++ b/irdump.c @@ -90,9 +90,8 @@ dumpref(enum op o, union ref ref) break; case RXCON: con = &conht[ref.i]; - if (con->deref) efmt("["); - if (con->issym) efmt("$%s", con->sym); - else if (con->isdat) efmt("$.%d", con->dat); + if (con->deref) efmt("*["); + if (con->issym || con->isdat) efmt("$%s", xcon2sym(ref.i)); else switch (con->cls) { case KI4: efmt("%d", (int)con->i); break; case KI8: efmt("%ld", con->i); break; -- cgit v1.2.3