diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2022-03-08 15:49:01 +0100 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2022-03-08 15:57:06 +0100 |
commit | 9060981c10c21834596d5677a2c9ccc56809eb64 (patch) | |
tree | 2fe18c42b4c435a15612abdc4ce836d5860cdfa2 /all.h | |
parent | 349794f3e4f11e4cc34a501ba935a2a305229738 (diff) | |
download | roux-9060981c10c21834596d5677a2c9ccc56809eb64.tar.gz |
flag types defined as unions
The risc-v abi needs to know if a type is defined as a union or not. We cannot use nunion to obtain this information because the risc-v abi made the unfortunate decision of treating union { int i; } differently from int i; So, instead, I introduce a single bit flag 'isunion'.
Diffstat (limited to 'all.h')
-rw-r--r-- | all.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/all.h b/all.h index a62b19b..f806c5b 100644 --- a/all.h +++ b/all.h @@ -357,7 +357,8 @@ struct Fn { struct Typ { char name[NString]; - int dark; + char isdark; + char isunion; int align; uint64_t size; uint nunion; |