aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/dump.c
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-12-14 12:30:20 +0100
committer lemon<lsof@mailbox.org>2025-12-14 17:26:04 +0100
commitcaf3e504af18d8329af4d6ce6ed43e314251e01a (patch)
tree40979e770284e9eb416f2de13a6db732102fd123 /ir/dump.c
parentd8b4e87af669c2b260686a5db67f7f02b4c164d9 (diff)
only put dats can in .text now when emitting it
Diffstat (limited to 'ir/dump.c')
-rw-r--r--ir/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/dump.c b/ir/dump.c
index d580a26..a2faf27 100644
--- a/ir/dump.c
+++ b/ir/dump.c
@@ -9,7 +9,7 @@ static struct wbuf *out = &bstdout;
static bool
prilitdat(const struct irdat *dat, const char *prefix)
{
- uchar *p = (dat->section == Sdata ? objout.data.p : objout.rodata.p) + dat->off;
+ uchar *p = (dat->section == Sdata ? objout.data.p : objout.rodata.p) + dat->off;
if (dat->ctype.t == TYARRAY && typechild(dat->ctype).t == TYCHAR && dat->siz-1 < 60 && p[dat->siz-1] == 0) {
bfmt(out, "%s%'S", prefix, p, dat->siz-1);
} else if (dat->ctype.t == TYFLOAT) {
@@ -25,7 +25,7 @@ prilitdat(const struct irdat *dat, const char *prefix)
static void
pridat(const struct irdat *dat)
{
- uchar *p = (dat->section == Sdata ? objout.data.p : objout.rodata.p) + dat->off;
+ uchar *p = (dat->section == Sdata ? objout.data.p : objout.rodata.p) + dat->off;
enum {
MINZERO = 4,
MAXLINE = 60,