aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/ir.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-20 11:01:52 +0100
committerlemon <lsof@mailbox.org>2025-11-20 13:36:49 +0100
commit1f8c531151d0a83e6b2531fdb443c4d6c62c2aab (patch)
tree613e965655d0509640948818da061f5a47e876cd /ir/ir.h
parent9d043755a73c170b56d364a0a671f18700a2aa19 (diff)
ir: for easier debugging, keep ctype in dats, print as literal when possible
Diffstat (limited to 'ir/ir.h')
-rw-r--r--ir/ir.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/ir.h b/ir/ir.h
index 613ef2a..aa91f6b 100644
--- a/ir/ir.h
+++ b/ir/ir.h
@@ -19,6 +19,7 @@ union irtype {
struct irdat {
uchar align : 6, globl : 1;
uchar section;
+ union type ctype;
uint siz;
uint off;
const char *name;
@@ -240,7 +241,7 @@ union ref mkfltcon(enum irclass, double);
#define intconval(r) ((r).t == RICON ? (r).i : conht[(r).i].i)
#define fltconval(r) ((r).t == RICON ? (r).i : conht[(r).i].f)
union ref mksymref(const char *);
-union ref mkdatref(const char *name, uint siz, uint align, const void *, uint n, bool deref);
+union ref mkdatref(const char *name, union type ctype, uint siz, uint align, const void *, uint n, bool deref);
const char *xcon2sym(int ref);
struct instr mkalloca(uint siz, uint align);
union ref mkcallarg(union irtype ret, uint narg, int vararg);