add support for unions in sysv abi

This commit is contained in:
Quentin Carbonneaux 2016-08-16 13:26:16 -07:00
parent fbbb8e4d78
commit cad13d0dce
4 changed files with 67 additions and 40 deletions

5
all.h
View file

@ -429,13 +429,14 @@ struct Typ {
struct Seg {
enum {
Send,
Spad,
Sint,
Sflt,
Styp,
};
uint type:2;
uint len:30; /* index in typ[] for Styp */
uint type:3;
uint len:29; /* index in typ[] for Styp */
} (*seg)[NSeg+1];
};