|
@@ -525,7 +525,15 @@ gb_internal void lb_setup_type_info_data_giant_array(lbModule *m, i64 global_typ
|
|
break;
|
|
break;
|
|
|
|
|
|
case Basic_string:
|
|
case Basic_string:
|
|
- tag_type = t_type_info_string;
|
|
|
|
|
|
+ {
|
|
|
|
+ tag_type = t_type_info_string;
|
|
|
|
+ LLVMValueRef vals[2] = {
|
|
|
|
+ lb_const_bool(m, t_bool, false).value,
|
|
|
|
+ lb_const_int(m, t_type_info_string_encoding_kind, 0).value,
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ variant_value = llvm_const_named_struct(m, tag_type, vals, gb_count_of(vals));
|
|
|
|
+ }
|
|
break;
|
|
break;
|
|
|
|
|
|
case Basic_cstring:
|
|
case Basic_cstring:
|
|
@@ -533,7 +541,7 @@ gb_internal void lb_setup_type_info_data_giant_array(lbModule *m, i64 global_typ
|
|
tag_type = t_type_info_string;
|
|
tag_type = t_type_info_string;
|
|
LLVMValueRef vals[2] = {
|
|
LLVMValueRef vals[2] = {
|
|
lb_const_bool(m, t_bool, true).value,
|
|
lb_const_bool(m, t_bool, true).value,
|
|
- lb_const_bool(m, t_bool, false).value,
|
|
|
|
|
|
+ lb_const_int(m, t_type_info_string_encoding_kind, 0).value,
|
|
};
|
|
};
|
|
|
|
|
|
variant_value = llvm_const_named_struct(m, tag_type, vals, gb_count_of(vals));
|
|
variant_value = llvm_const_named_struct(m, tag_type, vals, gb_count_of(vals));
|
|
@@ -545,7 +553,7 @@ gb_internal void lb_setup_type_info_data_giant_array(lbModule *m, i64 global_typ
|
|
tag_type = t_type_info_string;
|
|
tag_type = t_type_info_string;
|
|
LLVMValueRef vals[2] = {
|
|
LLVMValueRef vals[2] = {
|
|
lb_const_bool(m, t_bool, false).value,
|
|
lb_const_bool(m, t_bool, false).value,
|
|
- lb_const_bool(m, t_bool, true).value,
|
|
|
|
|
|
+ lb_const_int(m, t_type_info_string_encoding_kind, 1).value,
|
|
};
|
|
};
|
|
|
|
|
|
variant_value = llvm_const_named_struct(m, tag_type, vals, gb_count_of(vals));
|
|
variant_value = llvm_const_named_struct(m, tag_type, vals, gb_count_of(vals));
|
|
@@ -558,7 +566,7 @@ gb_internal void lb_setup_type_info_data_giant_array(lbModule *m, i64 global_typ
|
|
tag_type = t_type_info_string;
|
|
tag_type = t_type_info_string;
|
|
LLVMValueRef vals[2] = {
|
|
LLVMValueRef vals[2] = {
|
|
lb_const_bool(m, t_bool, true).value,
|
|
lb_const_bool(m, t_bool, true).value,
|
|
- lb_const_bool(m, t_bool, true).value,
|
|
|
|
|
|
+ lb_const_int(m, t_type_info_string_encoding_kind, 1).value,
|
|
};
|
|
};
|
|
|
|
|
|
variant_value = llvm_const_named_struct(m, tag_type, vals, gb_count_of(vals));
|
|
variant_value = llvm_const_named_struct(m, tag_type, vals, gb_count_of(vals));
|