aboutsummaryrefslogtreecommitdiffhomepage
path: root/irdump.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-19 09:26:36 +0200
committerlemon <lsof@mailbox.org>2023-06-19 09:26:36 +0200
commit8608070c077b067611b06dba72a4115a2094e124 (patch)
tree2182f418a25665f3604604182f04ba9a134165ef /irdump.c
parent8940a40329819ad616d68ba902cf957803faf5c4 (diff)
don't try to compile when debugging IR
Diffstat (limited to 'irdump.c')
-rw-r--r--irdump.c5
1 files changed, 2 insertions, 3 deletions
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;