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.h | |
| parent | 9d043755a73c170b56d364a0a671f18700a2aa19 (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |