From 1f8c531151d0a83e6b2531fdb443c4d6c62c2aab Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 20 Nov 2025 11:01:52 +0100 Subject: ir: for easier debugging, keep ctype in dats, print as literal when possible --- ir/ir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ir/ir.c') diff --git a/ir/ir.c b/ir/ir.c index 1223d2c..8bf9d4e 100644 --- a/ir/ir.c +++ b/ir/ir.c @@ -144,9 +144,9 @@ mksymref(const char *s) } union ref -mkdatref(const char *name, uint siz, uint align, const void *bytes, uint n, bool deref) +mkdatref(const char *name, union type ctype, uint siz, uint align, const void *bytes, uint n, bool deref) { - struct irdat dat = { .align = align, .siz = siz, .name = name, .section = Srodata }; + struct irdat dat = { .ctype = ctype, .align = align, .siz = siz, .name = name, .section = Srodata }; assert(n <= siz && siz && align); if (!name) { -- cgit v1.2.3