diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2023-07-30 18:18:25 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2023-07-30 18:18:25 -0700 |
commit | 44662c62f444fc50fe523d987199f6a10c9a693c (patch) | |
tree | b52a68243ef283471c53d224fd3f0ae87f8c0d0f /chibicc.h | |
parent | f2297c20b69d942fd1e8fdcdd8f4d142c71de662 (diff) |
add support for passing through sizeof & alignofs
Diffstat (limited to 'chibicc.h')
-rw-r--r-- | chibicc.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -281,6 +281,10 @@ struct Node { // Numeric literal int64_t val; long double fval; + + // sizeof(...) or alignof(...) + Type *is_sizeof; + Type *is_alignof; }; Node *new_cast(Node *expr, Type *ty); @@ -465,6 +469,7 @@ void hashmap_test(void); extern bool opt_fpic; extern bool opt_fcommon; extern bool opt_line_numbers; +extern bool opt_type_builtins; extern char *base_file; // |