@@ -746,7 +746,7 @@ and transl_exp0 e =
746746 Matching. for_trywith (Lvar id) (transl_cases_try pat_expr_list))
747747 | Texp_tuple el ->
748748 let ll = transl_list el in
749- let tag_info = Lambda. Tuple in
749+ let tag_info = Lambda. Blk_tuple in
750750 begin try
751751 Lconst (Const_block (0 , tag_info, List. map extract_constant ll))
752752 with Not_constant ->
@@ -756,9 +756,9 @@ and transl_exp0 e =
756756 let ll = transl_list args in
757757 begin match cstr.cstr_tag with
758758 Cstr_constant n ->
759- Lconst (Const_pointer (n, Lambda. NullConstructor cstr.cstr_name))
759+ Lconst (Const_pointer (n, Lambda. Pt_constructor cstr.cstr_name))
760760 | Cstr_block n ->
761- let tag_info = (Lambda. Constructor cstr.cstr_name) in
761+ let tag_info = (Lambda. Blk_constructor ( cstr.cstr_name, cstr.cstr_nonconsts) ) in
762762 begin try
763763 Lconst (Const_block (n,tag_info, List. map extract_constant ll))
764764 with Not_constant ->
@@ -774,10 +774,10 @@ and transl_exp0 e =
774774 | Texp_variant (l , arg ) ->
775775 let tag = Btype. hash_variant l in
776776 begin match arg with
777- None -> Lconst (Const_pointer (tag, Lambda. NullVariant l))
777+ None -> Lconst (Const_pointer (tag, Lambda. Pt_variant l))
778778 | Some arg ->
779779 let lam = transl_exp arg in
780- let tag_info = Lambda. Variant l in
780+ let tag_info = Lambda. Blk_variant l in
781781 try
782782 Lconst (Const_block (0 , tag_info, [Const_base (Const_int tag);
783783 extract_constant lam]))
@@ -811,7 +811,7 @@ and transl_exp0 e =
811811 let master =
812812 match kind with
813813 | Paddrarray | Pintarray ->
814- Lconst (Const_block (0 , Lambda. Array , cl)) (* ATTENTION: ? [|1;2;3;4|]*)
814+ Lconst (Const_block (0 , Lambda. Blk_array , cl)) (* ATTENTION: ? [|1;2;3;4|]*)
815815 | Pfloatarray ->
816816 Lconst (Const_float_array (List. map extract_float cl))
817817 | Pgenarray ->
@@ -1116,12 +1116,12 @@ and transl_record all_labels repres lbl_expr_list opt_init_expr =
11161116 if mut = Mutable then raise Not_constant ;
11171117 let cl = List. map extract_constant ll in
11181118 match repres with
1119- Record_regular -> Lconst (Const_block (0 , Lambda. Record all_labels_info, cl))
1119+ Record_regular -> Lconst (Const_block (0 , Lambda. Blk_record all_labels_info, cl))
11201120 | Record_float ->
11211121 Lconst (Const_float_array (List. map extract_float cl))
11221122 with Not_constant ->
11231123 match repres with
1124- Record_regular -> Lprim (Pmakeblock (0 , Lambda. Record all_labels_info, mut), ll)
1124+ Record_regular -> Lprim (Pmakeblock (0 , Lambda. Blk_record all_labels_info, mut), ll)
11251125 | Record_float -> Lprim (Pmakearray Pfloatarray , ll) in
11261126 begin match opt_init_expr with
11271127 None -> lam
0 commit comments