aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-21 00:56:07 -0700
committerMichael Forney <mforney@mforney.org>2019-04-21 01:06:39 -0700
commit9463599fdf38b50afcc68f568cf6ad682428ce74 (patch)
tree8ab77f6d3984f197ab705003653f3e0e3eb5a5a5 /cc.h
parent220ec69d2c45b4ab234bf39d227954e49a264e31 (diff)
Keep track of type properties in type
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc.h b/cc.h
index 9de12b3..fbf6075 100644
--- a/cc.h
+++ b/cc.h
@@ -188,6 +188,7 @@ struct member {
struct type {
enum typekind kind;
+ enum typeprop prop;
int align;
uint64_t size;
struct repr *repr;
@@ -390,7 +391,7 @@ _Bool consume(int);
/* type */
-struct type *mktype(enum typekind);
+struct type *mktype(enum typekind, enum typeprop);
struct type *mkpointertype(struct type *, enum typequal);
struct type *mkarraytype(struct type *, enum typequal, uint64_t);