Skip to content

Commit a4a8bea

Browse files
committed
Add ctxt_tag_containment to the Semant context
1 parent 1676a38 commit a4a8bea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/boot/me/semant.ml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ type ctxt =
111111
ctxt_all_lvals: (node_id,Ast.lval) Hashtbl.t;
112112
ctxt_call_lval_params: (node_id,Ast.ty array) Hashtbl.t;
113113

114+
(* Each pair (a, b) in this table indicates that tag a contains all the
115+
* tags in the list b. *)
116+
ctxt_tag_containment: (opaque_id, opaque_id Queue.t) Hashtbl.t;
117+
114118
(* definition id --> definition *)
115119
ctxt_all_defns: (node_id,defn) Hashtbl.t;
116120

@@ -199,6 +203,9 @@ let new_ctxt sess abi crate =
199203
ctxt_all_lvals = Hashtbl.create 0;
200204
ctxt_all_defns = Hashtbl.create 0;
201205
ctxt_call_lval_params = Hashtbl.create 0;
206+
207+
ctxt_tag_containment = Hashtbl.create 0;
208+
202209
ctxt_lval_base_id_to_defn_base_id = Hashtbl.create 0;
203210
ctxt_required_items = crate.Ast.crate_required;
204211
ctxt_required_syms = crate.Ast.crate_required_syms;

0 commit comments

Comments
 (0)