From 6ea6819e5a8b6e2b2c818249642e7923db9f81c8 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 1 Sep 2022 13:04:26 +0200 Subject: on big aggregates big, use a hash map to lookup fields --- src/cffc.hff | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cffc.hff') diff --git a/src/cffc.hff b/src/cffc.hff index 6ae2c6d..4735828 100644 --- a/src/cffc.hff +++ b/src/cffc.hff @@ -1,6 +1,7 @@ import "libc.hff"; import "mem.hff"; import "option.hff"; +import "idxmap.hff"; /// Types @@ -112,6 +113,7 @@ struct Type { enumty *const Type, tpargs [#]TeplArg, flds [#]AggField, + idxmap IdxMap, decls *Env, }, BitF struct { @@ -119,6 +121,7 @@ struct Type { name *const u8, id int, flds [#]BitFField, + idxmap IdxMap, }, VaList, }, -- cgit v1.2.3