diff options
| author | 2025-11-20 11:01:52 +0100 | |
|---|---|---|
| committer | 2025-11-20 13:36:49 +0100 | |
| commit | 1f8c531151d0a83e6b2531fdb443c4d6c62c2aab (patch) | |
| tree | 613e965655d0509640948818da061f5a47e876cd /ir/ir.c | |
| parent | 9d043755a73c170b56d364a0a671f18700a2aa19 (diff) | |
ir: for easier debugging, keep ctype in dats, print as literal when possible
Diffstat (limited to 'ir/ir.c')
| -rw-r--r-- | ir/ir.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |