llvm.org GIT mirror llvm / 9493dae
Use the 'count' attribute to calculate the upper bound of an array. The count attribute is more accurate with regards to the size of an array. It also obviates the upper bound attribute in the subrange. We can also better handle an unbound array by setting the count to -1 instead of the lower bound to 1 and upper bound to 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169312 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
23 changed file(s) with 45 addition(s) and 41 deletion(s). Raw diff Collapse all Expand all
370370
371371 /// getOrCreateSubrange - Create a descriptor for a value range. This
372372 /// implicitly uniques the values returned.
373 DISubrange getOrCreateSubrange(int64_t Lo, int64_t Hi, int64_t Count);
373 DISubrange getOrCreateSubrange(int64_t Lo, int64_t Count);
374374
375375 /// createGlobalVariable - Create a new descriptor for the specified global.
376376 /// @param Name Name of the variable.
142142 explicit DISubrange(const MDNode *N = 0) : DIDescriptor(N) {}
143143
144144 uint64_t getLo() const { return getUInt64Field(1); }
145 uint64_t getHi() const { return getUInt64Field(2); }
146 int64_t getCount() const { return getInt64Field(3); }
145 int64_t getCount() const { return getInt64Field(2); }
147146 };
148147
149148 /// DIArray - This descriptor holds an array of descriptors.
12491249 DIE *IndexTy) {
12501250 DIE *DW_Subrange = new DIE(dwarf::DW_TAG_subrange_type);
12511251 addDIEEntry(DW_Subrange, dwarf::DW_AT_type, dwarf::DW_FORM_ref4, IndexTy);
1252
1253 // The L value defines the lower bounds which is typically zero for C/C++. The
1254 // Count value is the number of elements. Values are 64 bit. If Count == -1
1255 // then the array is unbounded and we do not emit DW_AT_lower_bound and
1256 // DW_AT_upper_bound attributes. If L == 0 and Count == 0, then the array has
1257 // zero elements in which case we do not emit an upper bound.
12521258 uint64_t L = SR.getLo();
1253 uint64_t H = SR.getHi();
12541259 int64_t Count = SR.getCount();
12551260
1256 // The L value defines the lower bounds which is typically zero for C/C++. The
1257 // H value is the upper bounds. Values are 64 bit. H - L + 1 is the size
1258 // of the array. If L > H then do not emit DW_AT_lower_bound and
1259 // DW_AT_upper_bound attributes. If L is zero and H is also zero then the
1260 // array has one element and in such case do not emit lower bound.
1261
1262 if (L > H) {
1263 Buffer.addChild(DW_Subrange);
1264 return;
1265 }
1266 if (L)
1267 addUInt(DW_Subrange, dwarf::DW_AT_lower_bound, 0, L);
1268 if (H > 0 || Count != 0)
1269 addUInt(DW_Subrange, dwarf::DW_AT_upper_bound, 0, H);
1261 if (Count != -1) {
1262 // FIXME: An unbounded array should reference the expression that defines
1263 // the array.
1264 if (L)
1265 addUInt(DW_Subrange, dwarf::DW_AT_lower_bound, 0, L);
1266
1267 if (Count != 0)
1268 addUInt(DW_Subrange, dwarf::DW_AT_upper_bound, 0, Count - 1);
1269 }
1270
12701271 Buffer.addChild(DW_Subrange);
12711272 }
12721273
740740
741741 /// getOrCreateSubrange - Create a descriptor for a value range. This
742742 /// implicitly uniques the values returned.
743 DISubrange DIBuilder::getOrCreateSubrange(int64_t Lo, int64_t Hi,
744 int64_t Count) {
743 DISubrange DIBuilder::getOrCreateSubrange(int64_t Lo, int64_t Count) {
745744 Value *Elts[] = {
746745 GetTagConstant(VMContext, dwarf::DW_TAG_subrange_type),
747746 ConstantInt::get(Type::getInt64Ty(VMContext), Lo),
748 ConstantInt::get(Type::getInt64Ty(VMContext), Hi),
749747 ConstantInt::get(Type::getInt64Ty(VMContext), Count)
750748 };
751749
10481048 }
10491049
10501050 void DISubrange::printInternal(raw_ostream &OS) const {
1051 OS << " [" << getLo() << ", " << getHi() << ']';
1051 int64_t Count = getCount();
1052 if (Count != -1)
1053 OS << " [" << getLo() << ", " << Count - 1 << ']';
1054 else
1055 OS << " [unbound]";
10521056 }
10531057
10541058 void DIScope::printInternal(raw_ostream &OS) const {
5151 !6 = metadata !{i32 590083, metadata !2, metadata !"", metadata !2, i32 0, i64 128, i64 128, i32 0, i32 0, metadata !7, metadata !8, i32 0, i32 0} ; [ DW_TAG_vector_type ]
5252 !7 = metadata !{i32 589860, metadata !2, metadata !"float", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
5353 !8 = metadata !{metadata !9}
54 !9 = metadata !{i32 589857, i64 0, i64 3, i64 4} ; [ DW_TAG_subrange_type ]
54 !9 = metadata !{i32 589857, i64 0, i64 4} ; [ DW_TAG_subrange_type ]
5555 !10 = metadata !{i32 589870, i32 0, metadata !1, metadata !"main", metadata !"main", metadata !"", metadata !1, i32 59, metadata !11, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 true, i32 (i32, i8**, i1)* @main, null} ; [ DW_TAG_subprogram ]
5656 !11 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !12, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
5757 !12 = metadata !{metadata !13}
4848 !6 = metadata !{i32 590083, metadata !2, metadata !"", metadata !2, i32 0, i64 128, i64 128, i32 0, i32 0, metadata !7, metadata !8, i32 0, i32 0} ; [ DW_TAG_vector_type ]
4949 !7 = metadata !{i32 589860, metadata !2, metadata !"float", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
5050 !8 = metadata !{metadata !9}
51 !9 = metadata !{i32 589857, i64 0, i64 3, i64 4} ; [ DW_TAG_subrange_type ]
51 !9 = metadata !{i32 589857, i64 0, i64 4} ; [ DW_TAG_subrange_type ]
5252 !10 = metadata !{i32 589870, i32 0, metadata !1, metadata !"main", metadata !"main", metadata !"", metadata !1, i32 59, metadata !11, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 true, i32 (i32, i8**)* @main, null} ; [ DW_TAG_subprogram ]
5353 !11 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !12, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
5454 !12 = metadata !{metadata !13}
6060 !12 = metadata !{i32 524289, metadata !4, metadata !"", metadata !4, i32 0, i64 192, i64 32, i64 0, i32 0, metadata !13, metadata !14, i32 0, null} ; [ DW_TAG_array_type ]
6161 !13 = metadata !{i32 524324, metadata !4, metadata !"double", metadata !4, i32 0, i64 64, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ]
6262 !14 = metadata !{metadata !15}
63 !15 = metadata !{i32 524321, i64 0, i64 2, i64 3} ; [ DW_TAG_subrange_type ]
63 !15 = metadata !{i32 524321, i64 0, i64 3} ; [ DW_TAG_subrange_type ]
6464 !16 = metadata !{i32 524334, i32 0, metadata !8, metadata !"ggVector3", metadata !"ggVector3", metadata !"", metadata !9, i32 72, metadata !17, i1 false, i1 false, i32 0, i32 0, null, i1 false, i1 false, null} ; [ DW_TAG_subprogram ]
6565 !17 = metadata !{i32 524309, metadata !4, metadata !"", metadata !4, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !18, i32 0, null} ; [ DW_TAG_subroutine_type ]
6666 !18 = metadata !{null, metadata !19, metadata !20}
7777 !9 = metadata !{i32 458767, metadata !2, metadata !"", metadata !2, i32 0, i64 64, i64 64, i64 0, i32 64, metadata !10} ; [ DW_TAG_pointer_type ]
7878 !10 = metadata !{i32 458753, metadata !2, metadata !"", metadata !2, i32 0, i64 8, i64 8, i64 0, i32 0, metadata !5, metadata !11, i32 0, null} ; [ DW_TAG_array_type ]
7979 !11 = metadata !{metadata !12}
80 !12 = metadata !{i32 458785, i64 0, i64 0, i64 1} ; [ DW_TAG_subrange_type ]
80 !12 = metadata !{i32 458785, i64 0, i64 1} ; [ DW_TAG_subrange_type ]
8181 !13 = metadata !{i32 3, i32 0, metadata !14, null}
8282 !14 = metadata !{i32 458763, metadata !1, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
8383 !15 = metadata !{i32 4, i32 0, metadata !14, null}
1515 !103 = metadata !{i32 524299, metadata !97, i32 73, i32 0} ; [ DW_TAG_lexical_block ]
1616 !104 = metadata !{i32 524289, metadata !38, metadata !"", metadata !38, i32 0, i64 85312, i64 64, i64 0, i32 0, metadata !46, metadata !105, i32 0, null} ; [ DW_TAG_array_type ]
1717 !105 = metadata !{metadata !106}
18 !106 = metadata !{i32 524321, i64 0, i64 1332, i64 1333} ; [ DW_TAG_subrange_type ]
18 !106 = metadata !{i32 524321, i64 0, i64 1333} ; [ DW_TAG_subrange_type ]
1919 !107 = metadata !{i32 73, i32 0, metadata !103, null}
2020
2121 define i32 @main() nounwind ssp {
8181 !15 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 160, i64 8, i32 0, i32 0, metadata !16, metadata !17, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 160, align 8, offset 0] [from char]
8282 !16 = metadata !{i32 786468, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ] [char] [line 0, size 8, align 8, offset 0, enc DW_ATE_signed_char]
8383 !17 = metadata !{metadata !18}
84 !18 = metadata !{i32 786465, i64 0, i64 19} ; [ DW_TAG_subrange_type ] [0, 19]
84 !18 = metadata !{i32 786465, i64 0, i64 20} ; [ DW_TAG_subrange_type ] [0, 19]
1616 !7 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 320, i64 32, i32 0, i32 0, metadata !8, metadata !9, i32 0, i32 0} ; [ DW_TAG_array_type ]
1717 !8 = metadata !{i32 720932, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
1818 !9 = metadata !{metadata !10}
19 !10 = metadata !{i32 720929, i64 0, i64 9, i64 10} ; [ DW_TAG_subrange_type ]
19 !10 = metadata !{i32 720929, i64 0, i64 10} ; [ DW_TAG_subrange_type ]
5050 !19 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 0, i64 8, i32 0, i32 0, metadata !20, metadata !21, i32 0, i32 0} ; [ DW_TAG_array_type ]
5151 !20 = metadata !{i32 786468, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
5252 !21 = metadata !{metadata !22}
53 !22 = metadata !{i32 786465, i64 1, i64 0, i64 -1} ; [ DW_TAG_subrange_type ]
53 !22 = metadata !{i32 786465, i64 0, i64 -1} ; [ DW_TAG_subrange_type ]
5454 !23 = metadata !{i32 7, i32 8, metadata !17, null}
5555 !24 = metadata !{i32 9, i32 1, metadata !17, null}
5656 !25 = metadata !{i32 8, i32 3, metadata !17, null}
3030 !14 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 34359738368, i64 8, i32 0, i32 0, metadata !15, metadata !16, i32 0, i32 0} ; [ DW_TAG_array_type ]
3131 !15 = metadata !{i32 720932, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
3232 !16 = metadata !{metadata !17}
33 !17 = metadata !{i32 720929, i64 0, i64 4294967295, i64 4294967296} ; [ DW_TAG_subrange_type ]
33 !17 = metadata !{i32 720929, i64 0, i64 4294967296} ; [ DW_TAG_subrange_type ]
3434 !18 = metadata !{i32 5, i32 3, metadata !19, null}
3535 !19 = metadata !{i32 720907, metadata !5, i32 4, i32 1, metadata !6, i32 0} ; [ DW_TAG_lexical_block ]
3636 !20 = metadata !{i32 6, i32 1, metadata !19, null}
2424 !14 = metadata !{i32 524289, metadata !4, metadata !"", metadata !4, i32 0, i64 8, i64 8, i64 0, i32 0, metadata !15, metadata !16, i32 0, null} ; [ DW_TAG_array_type ]
2525 !15 = metadata !{i32 524324, metadata !4, metadata !"char", metadata !4, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
2626 !16 = metadata !{metadata !17}
27 !17 = metadata !{i32 524321, i64 0, i64 0, i64 1} ; [ DW_TAG_subrange_type ]
27 !17 = metadata !{i32 524321, i64 0, i64 1} ; [ DW_TAG_subrange_type ]
2828 !18 = metadata !{metadata !"llvm.mdnode.fwdref.19"}
2929 !19 = metadata !{metadata !"llvm.mdnode.fwdref.23"}
8080 !30 = metadata !{i32 524310, metadata !3, metadata !"uint32_t", metadata !12, i32 55, i64 0, i64 0, i64 0, i32 0, metadata !31} ; [ DW_TAG_typedef ]
8181 !31 = metadata !{i32 524324, metadata !3, metadata !"unsigned int", metadata !3, i32 0, i64 32, i64 32, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ]
8282 !32 = metadata !{metadata !33}
83 !33 = metadata !{i32 524321, i64 0, i64 1, i64 2} ; [ DW_TAG_subrange_type ]
83 !33 = metadata !{i32 524321, i64 0, i64 2} ; [ DW_TAG_subrange_type ]
8484 !34 = metadata !{i32 524544, metadata !24, metadata !"addr", metadata !10, i32 96, metadata !35} ; [ DW_TAG_auto_variable ]
8585 !35 = metadata !{i32 524303, metadata !3, metadata !"", metadata !3, i32 0, i64 32, i64 32, i64 0, i32 0, metadata !11} ; [ DW_TAG_pointer_type ]
4949 ; CHECK-NEXT: 0x000000b2: DW_AT_type [DW_FORM_ref4] (cu + 0x0074 => {0x00000074})
5050 ; CHECK: 0x000000b6: DW_TAG_subrange_type [11]
5151 ; CHECK-NEXT: 0x000000b7: DW_AT_type [DW_FORM_ref4] (cu + 0x007b => {0x0000007b})
52 ; CHECK-NOT: DW_AT_upper_bound
5253
5354 ; int bar::b[0]:
5455 ; CHECK: 0x000000d3: DW_TAG_member [10]
7576 !15 = metadata !{i32 786445, metadata !12, metadata !"b", metadata !6, i32 3, i64 32, i64 32, i64 32, i32 0, metadata !16} ; [ DW_TAG_member ] [b] [line 3, size 32, align 32, offset 32] [from ]
7677 !16 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 32, i64 32, i32 0, i32 0, metadata !9, metadata !17, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 32, align 32, offset 0] [from int]
7778 !17 = metadata !{metadata !18}
78 !18 = metadata !{i32 786465, i64 0, i64 0, i64 1} ; [ DW_TAG_subrange_type ] [0, 0]
79 !18 = metadata !{i32 786465, i64 0, i64 1} ; [ DW_TAG_subrange_type ] [0, 1]
7980 !19 = metadata !{i32 12, i32 0, metadata !11, null}
8081 !20 = metadata !{i32 786688, metadata !11, metadata !"my_bar", metadata !6, i32 13, metadata !21, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [my_bar] [line 13]
8182 !21 = metadata !{i32 786451, null, metadata !"bar", metadata !6, i32 6, i64 32, i64 32, i32 0, i32 0, null, metadata !22, i32 0, i32 0, i32 0} ; [ DW_TAG_structure_type ] [bar] [line 6, size 32, align 32, offset 0] [from ]
8485 !24 = metadata !{i32 786445, metadata !21, metadata !"b", metadata !6, i32 8, i64 0, i64 32, i64 32, i32 0, metadata !25} ; [ DW_TAG_member ] [b] [line 8, size 0, align 32, offset 32] [from ]
8586 !25 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 0, i64 32, i32 0, i32 0, metadata !9, metadata !26, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 0, align 32, offset 0] [from int]
8687 !26 = metadata !{metadata !27}
87 !27 = metadata !{i32 786465, i64 0, i64 0, i64 0} ; [ DW_TAG_subrange_type ] [0, 0]
88 !27 = metadata !{i32 786465, i64 0, i64 0} ; [ DW_TAG_subrange_type ] [0, 0]
8889 !28 = metadata !{i32 13, i32 0, metadata !11, null}
8990 !29 = metadata !{i32 15, i32 0, metadata !11, null}
9091 !30 = metadata !{i32 16, i32 0, metadata !11, null}
1414
1515 ; CHECK: 0x00000035: DW_TAG_subrange_type [5]
1616 ; CHECK-NEXT: 0x00000036: DW_AT_type [DW_FORM_ref4] (cu + 0x002d => {0x0000002d})
17 ; CHECK-NOT: DW_AT_upper_bound
1718
1819 ; CHECK: 0x00000048: DW_TAG_member [8]
1920 ; CHECK-NEXT: 0x00000049: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000003f] = "x")
3435 !10 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 0, i64 32, i32 0, i32 0, metadata !11, metadata !12, i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 0, align 32, offset 0] [from int]
3536 !11 = metadata !{i32 786468, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]
3637 !12 = metadata !{metadata !13}
37 !13 = metadata !{i32 786465, i64 1, i64 0, i64 -1} ; [ DW_TAG_subrange_type ] [1, 0]
38 !13 = metadata !{i32 786465, i64 0, i64 -1} ; [ DW_TAG_subrange_type ] [unbound]
3839 !14 = metadata !{i32 786478, i32 0, metadata !7, metadata !"A", metadata !"A", metadata !"", metadata !6, i32 1, metadata !15, i1 false, i1 false, i32 0, i32 0, null, i32 320, i1 false, null, null, i32 0, metadata !18, i32 1} ; [ DW_TAG_subprogram ] [line 1] [A]
3940 !15 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !16, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
4041 !16 = metadata !{null, metadata !17}
7575 !14 = metadata !{i32 786688, metadata !13, metadata !"vla", metadata !6, i32 3, metadata !15, i32 0, i32 0, i64 2} ; [ DW_TAG_auto_variable ]
7676 !15 = metadata !{i32 786433, null, metadata !"", null, i32 0, i64 0, i64 32, i32 0, i32 0, metadata !9, metadata !16, i32 0, i32 0} ; [ DW_TAG_array_type ]
7777 !16 = metadata !{metadata !17}
78 !17 = metadata !{i32 786465, i64 1, i64 0} ; [ DW_TAG_subrange_type ]
78 !17 = metadata !{i32 786465, i64 0, i64 -1} ; [ DW_TAG_subrange_type ]
7979 !18 = metadata !{i32 3, i32 7, metadata !13, null}
8080 !19 = metadata !{i32 786688, metadata !13, metadata !"i", metadata !6, i32 4, metadata !9, i32 0, i32 0} ; [ DW_TAG_auto_variable ]
8181 !20 = metadata !{i32 4, i32 7, metadata !13, null}
2828 ;CHECK-NOT: DW_AT_lower_bound
2929 ;CHECK-NOT: DW_AT_upper_bound
3030 ;CHECK-NEXT: End Of Children Mark
31 !10 = metadata !{i32 589857, i64 1, i64 0, i64 -1} ; [ DW_TAG_subrange_type ]
31 !10 = metadata !{i32 589857, i64 0, i64 -1} ; [ DW_TAG_subrange_type ]
3232 !11 = metadata !{i32 4, i32 7, metadata !7, null}
3333 !12 = metadata !{i32 5, i32 3, metadata !7, null}
9696 !17 = metadata !{i32 720948, i32 0, null, metadata !"zero_arr", metadata !"zero_arr", metadata !"", metadata !6, i32 3, metadata !18, i32 0, i32 1, [10 x i32]* @zero_arr} ; [ DW_TAG_variable ]
9797 !18 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 320, i64 32, i32 0, i32 0, metadata !9, metadata !19, i32 0, i32 0} ; [ DW_TAG_array_type ]
9898 !19 = metadata !{metadata !20}
99 !20 = metadata !{i32 720929, i64 0, i64 9, i64 10} ; [ DW_TAG_subrange_type ]
99 !20 = metadata !{i32 720929, i64 0, i64 10} ; [ DW_TAG_subrange_type ]
100100 !21 = metadata !{i32 7, i32 5, metadata !22, null}
101101 !22 = metadata !{i32 720907, metadata !5, i32 6, i32 1, metadata !6, i32 0} ; [ DW_TAG_lexical_block ]
102102 !23 = metadata !{i32 9, i32 5, metadata !22, null}
153153 !24 = metadata !{i32 720909, metadata !20, metadata !"c2", metadata !6, i32 24, i64 16, i64 8, i64 8, i32 0, metadata !25} ; [ DW_TAG_member ]
154154 !25 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 16, i64 8, i32 0, i32 0, metadata !23, metadata !26, i32 0, i32 0} ; [ DW_TAG_array_type ]
155155 !26 = metadata !{metadata !27}
156 !27 = metadata !{i32 720929, i64 0, i64 1, i64 2} ; [ DW_TAG_subrange_type ]
156 !27 = metadata !{i32 720929, i64 0, i64 2} ; [ DW_TAG_subrange_type ]
157157 !28 = metadata !{i32 720942, i32 0, metadata !20, metadata !"char_struct", metadata !"char_struct", metadata !"", metadata !6, i32 22, metadata !29, i1 false, i1 false, i32 0, i32 0, null, i32 320, i1 false, null, null, i32 0, metadata !10} ; [ DW_TAG_subprogram ]
158158 !29 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !30, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
159159 !30 = metadata !{null, metadata !31}
143143 !24 = metadata !{i32 720909, metadata !20, metadata !"c2", metadata !6, i32 24, i64 16, i64 8, i64 8, i32 0, metadata !25} ; [ DW_TAG_member ]
144144 !25 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 16, i64 8, i32 0, i32 0, metadata !23, metadata !26, i32 0, i32 0} ; [ DW_TAG_array_type ]
145145 !26 = metadata !{metadata !27}
146 !27 = metadata !{i32 720929, i64 0, i64 1, i64 2} ; [ DW_TAG_subrange_type ]
146 !27 = metadata !{i32 720929, i64 0, i64 2} ; [ DW_TAG_subrange_type ]
147147 !28 = metadata !{i32 720942, i32 0, metadata !20, metadata !"char_struct", metadata !"char_struct", metadata !"", metadata !6, i32 22, metadata !29, i1 false, i1 false, i32 0, i32 0, null, i32 320, i1 false, null, null, i32 0, metadata !10} ; [ DW_TAG_subprogram ]
148148 !29 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !30, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
149149 !30 = metadata !{null, metadata !31}