llvm.org GIT mirror llvm / 4b9f3c1
Debug info: Add a new explicit DIDescriptor flag for the "public" access specifier and change the default behavior to only emit the DW_AT_accessibility(public) attribute when the isPublic() is explicitly set. rdar://problem/18154959 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216799 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 6 years ago
8 changed file(s) with 194 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
6363 template friend class DIRef;
6464
6565 public:
66 /// The three accessibility flags are mutually exclusive and rolled
67 /// together in the first two bits.
6668 enum {
67 FlagPrivate = 1 << 0,
68 FlagProtected = 1 << 1,
69 FlagAccessibility = 1 << 0 | 1 << 1,
70 FlagPrivate = 1,
71 FlagProtected = 2,
72 FlagPublic = 3,
73
6974 FlagFwdDecl = 1 << 2,
7075 FlagAppleBlock = 1 << 3,
7176 FlagBlockByrefStruct = 1 << 4,
314319 // carry this is just plain insane.
315320 uint64_t getOffsetInBits() const { return getUInt64Field(7); }
316321 unsigned getFlags() const { return getUnsignedField(8); }
317 bool isPrivate() const { return (getFlags() & FlagPrivate) != 0; }
318 bool isProtected() const { return (getFlags() & FlagProtected) != 0; }
322 bool isPrivate() const {
323 return (getFlags() & FlagAccessibility) == FlagPrivate;
324 }
325 bool isProtected() const {
326 return (getFlags() & FlagAccessibility) == FlagProtected;
327 }
328 bool isPublic() const {
329 return (getFlags() & FlagAccessibility) == FlagPublic;
330 }
319331 bool isForwardDecl() const { return (getFlags() & FlagFwdDecl) != 0; }
320332 // isAppleBlock - Return true if this is the Apple Blocks extension.
321333 bool isAppleBlockExtension() const {
502514 }
503515 /// isPrivate - Return true if this subprogram has "private"
504516 /// access specifier.
505 bool isPrivate() const { return (getUnsignedField(13) & FlagPrivate) != 0; }
517 bool isPrivate() const {
518 return (getFlags() & FlagAccessibility) == FlagPrivate;
519 }
506520 /// isProtected - Return true if this subprogram has "protected"
507521 /// access specifier.
508522 bool isProtected() const {
509 return (getUnsignedField(13) & FlagProtected) != 0;
523 return (getFlags() & FlagAccessibility) == FlagProtected;
524 }
525 /// isPublic - Return true if this subprogram has "public"
526 /// access specifier.
527 bool isPublic() const {
528 return (getFlags() & FlagAccessibility) == FlagPublic;
510529 }
511530 /// isExplicit - Return true if this subprogram is marked as explicit.
512531 bool isExplicit() const { return (getUnsignedField(13) & FlagExplicit) != 0; }
15421542 else if (SP.isPrivate())
15431543 addUInt(SPDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_data1,
15441544 dwarf::DW_ACCESS_private);
1545 else
1545 else if (SP.isPublic())
15461546 addUInt(SPDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_data1,
15471547 dwarf::DW_ACCESS_public);
15481548
19591959 addUInt(MemberDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_data1,
19601960 dwarf::DW_ACCESS_private);
19611961 // Otherwise C++ member and base classes are considered public.
1962 else
1962 else if (DT.isPublic())
19631963 addUInt(MemberDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_data1,
19641964 dwarf::DW_ACCESS_public);
19651965 if (DT.isVirtual())
20082008 else if (DT.isPrivate())
20092009 addUInt(StaticMemberDIE, dwarf::DW_AT_accessibility, dwarf::DW_FORM_data1,
20102010 dwarf::DW_ACCESS_private);
2011 else
2011 else if (DT.isPublic())
20122012 addUInt(StaticMemberDIE, dwarf::DW_AT_accessibility, dwarf::DW_FORM_data1,
20132013 dwarf::DW_ACCESS_public);
20142014
488488 Tag != dwarf::DW_TAG_inheritance && Tag != dwarf::DW_TAG_friend &&
489489 getFilename().empty())
490490 return false;
491
491492 // DIType is abstract, it should be a BasicType, a DerivedType or
492493 // a CompositeType.
493494 if (isBasicType())
13431344 OS << " [private]";
13441345 else if (isProtected())
13451346 OS << " [protected]";
1347 else if (isPublic())
1348 OS << " [public]";
13461349
13471350 if (isArtificial())
13481351 OS << " [artificial]";
14021405 OS << " [private]";
14031406 else if (isProtected())
14041407 OS << " [protected]";
1408 else if (isPublic())
1409 OS << " [public]";
14051410
14061411 if (isLValueReference())
14071412 OS << " [reference]";
0 ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
1 ; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
2 ;
3 ; Test the DW_AT_accessibility DWARF attribute.
4 ;
5 ;
6 ; Regenerate me:
7 ; clang++ -g tools/clang/test/CodeGenCXX/debug-info-access.cpp -S -emit-llvm -o -
8 ;
9 ; struct A {
10 ; void pub_default();
11 ; static int pub_default_static;
12 ; };
13 ;
14 ; class B : public A {
15 ; public:
16 ; void pub();
17 ; static int public_static;
18 ; protected:
19 ; void prot();
20 ; private:
21 ; void priv_default();
22 ; };
23 ;
24 ; union U {
25 ; void union_pub_default();
26 ; private:
27 ; int union_priv;
28 ; };
29 ;
30 ; void free() {}
31 ;
32 ; A a;
33 ; B b;
34 ; U u;
35
36 ; CHECK: DW_TAG_member
37 ; CHECK: DW_AT_name {{.*}}"pub_default_static")
38 ; CHECK-NOT: DW_AT_accessibility
39 ; CHECK-NOT: DW_TAG
40 ;
41 ; CHECK: DW_TAG_subprogram
42 ; CHECK: DW_AT_name {{.*}}"pub_default")
43 ; CHECK-NOT: DW_AT_accessibility
44 ; CHECK: DW_TAG
45 ;
46 ; CHECK: DW_TAG_inheritance
47 ; CHECK-NOT: DW_TAG
48 ; CHECK: DW_AT_accessibility {{.*}}(0x01)
49 ;
50 ; CHECK: DW_TAG_member
51 ; CHECK: DW_AT_name {{.*}}"public_static")
52 ; CHECK-NOT: DW_TAG
53 ; CHECK: DW_AT_accessibility {{.*}}(0x01)
54 ;
55 ; CHECK: DW_TAG_subprogram
56 ; CHECK: DW_AT_name {{.*}}"pub")
57 ; CHECK-NOT: DW_TAG
58 ; CHECK: DW_AT_accessibility {{.*}}(0x01)
59 ;
60 ; CHECK: DW_TAG_subprogram
61 ; CHECK: DW_AT_name {{.*}}"prot")
62 ; CHECK-NOT: DW_TAG
63 ; CHECK: DW_AT_accessibility {{.*}}(0x02)
64 ;
65 ; CHECK: DW_TAG_subprogram
66 ; CHECK: DW_AT_name {{.*}}"priv_default")
67 ; CHECK-NOT: DW_AT_accessibility
68 ; CHECK: DW_TAG
69 ;
70 ; CHECK: DW_TAG_member
71 ; CHECK: DW_AT_name {{.*}}"union_priv")
72 ; CHECK-NOT: DW_TAG
73 ; CHECK: DW_AT_accessibility {{.*}}(0x03)
74 ;
75 ; CHECK: DW_TAG_subprogram
76 ; CHECK: DW_AT_name {{.*}}"union_pub_default")
77 ; CHECK-NOT: DW_AT_accessibility
78 ; CHECK: DW_TAG
79 ;
80 ; CHECK: DW_TAG_subprogram
81 ; CHECK: DW_AT_name {{.*}}"free")
82 ; CHECK-NOT: DW_AT_accessibility
83 ; CHECK-NOT: DW_TAG
84 ;
85 ; ModuleID = '/llvm/tools/clang/test/CodeGenCXX/debug-info-access.cpp'
86 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
87 target triple = "x86_64-apple-macosx10.10.0"
88
89 %struct.A = type { i8 }
90 %class.B = type { i8 }
91 %union.U = type { i32 }
92
93 @a = global %struct.A zeroinitializer, align 1
94 @b = global %class.B zeroinitializer, align 1
95 @u = global %union.U zeroinitializer, align 4
96
97 ; Function Attrs: nounwind ssp uwtable
98 define void @_Z4freev() #0 {
99 ret void, !dbg !41
100 }
101
102 attributes #0 = { nounwind ssp uwtable }
103
104 !llvm.dbg.cu = !{!0}
105 !llvm.module.flags = !{!38, !39}
106 !llvm.ident = !{!40}
107
108 !0 = metadata !{i32 786449, metadata !1, i32 4, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !3, metadata !29, metadata !34, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/llvm/tools/clang/test/CodeGenCXX/debug-info-access.cpp] [DW_LANG_C_plus_plus]
109 !1 = metadata !{metadata !"/llvm/tools/clang/test/CodeGenCXX/debug-info-access.cpp", metadata !""}
110 !2 = metadata !{}
111 !3 = metadata !{metadata !4, metadata !12, metadata !22}
112 !4 = metadata !{i32 786451, metadata !1, null, metadata !"A", i32 3, i64 8, i64 8, i32 0, i32 0, null, metadata !5, i32 0, null, null, metadata !"_ZTS1A"} ; [ DW_TAG_structure_type ] [A] [line 3, size 8, align 8, offset 0] [def] [from ]
113 !5 = metadata !{metadata !6, metadata !8}
114 !6 = metadata !{i32 786445, metadata !1, metadata !"_ZTS1A", metadata !"pub_default_static", i32 7, i64 0, i64 0, i64 0, i32 4096, metadata !7, null} ; [ DW_TAG_member ] [pub_default_static] [line 7, size 0, align 0, offset 0] [static] [from int]
115 !7 = metadata !{i32 786468, null, null, metadata !"int", 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]
116 !8 = metadata !{i32 786478, metadata !1, metadata !"_ZTS1A", metadata !"pub_default", metadata !"pub_default", metadata !"_ZN1A11pub_defaultEv", i32 5, metadata !9, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 false, null, null, i32 0, null, i32 5} ; [ DW_TAG_subprogram ] [line 5] [pub_default]
117 !9 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !10, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
118 !10 = metadata !{null, metadata !11}
119 !11 = metadata !{i32 786447, null, null, metadata !"", i32 0, i64 64, i64 64, i64 0, i32 1088, metadata !"_ZTS1A"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1A]
120 !12 = metadata !{i32 786434, metadata !1, null, metadata !"B", i32 11, i64 8, i64 8, i32 0, i32 0, null, metadata !13, i32 0, null, null, metadata !"_ZTS1B"} ; [ DW_TAG_class_type ] [B] [line 11, size 8, align 8, offset 0] [def] [from ]
121 !13 = metadata !{metadata !14, metadata !15, metadata !16, metadata !20, metadata !21}
122 !14 = metadata !{i32 786460, null, metadata !"_ZTS1B", null, i32 0, i64 0, i64 0, i64 0, i32 3, metadata !"_ZTS1A"} ; [ DW_TAG_inheritance ] [line 0, size 0, align 0, offset 0] [public] [from _ZTS1A]
123 !15 = metadata !{i32 786445, metadata !1, metadata !"_ZTS1B", metadata !"public_static", i32 16, i64 0, i64 0, i64 0, i32 4099, metadata !7, null} ; [ DW_TAG_member ] [public_static] [line 16, size 0, align 0, offset 0] [public] [static] [from int]
124 !16 = metadata !{i32 786478, metadata !1, metadata !"_ZTS1B", metadata !"pub", metadata !"pub", metadata !"_ZN1B3pubEv", i32 14, metadata !17, i1 false, i1 false, i32 0, i32 0, null, i32 259, i1 false, null, null, i32 0, null, i32 14} ; [ DW_TAG_subprogram ] [line 14] [public] [pub]
125 !17 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !18, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
126 !18 = metadata !{null, metadata !19}
127 !19 = metadata !{i32 786447, null, null, metadata !"", i32 0, i64 64, i64 64, i64 0, i32 1088, metadata !"_ZTS1B"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1B]
128 !20 = metadata !{i32 786478, metadata !1, metadata !"_ZTS1B", metadata !"prot", metadata !"prot", metadata !"_ZN1B4protEv", i32 19, metadata !17, i1 false, i1 false, i32 0, i32 0, null, i32 258, i1 false, null, null, i32 0, null, i32 19} ; [ DW_TAG_subprogram ] [line 19] [protected] [prot]
129 !21 = metadata !{i32 786478, metadata !1, metadata !"_ZTS1B", metadata !"priv_default", metadata !"priv_default", metadata !"_ZN1B12priv_defaultEv", i32 22, metadata !17, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 false, null, null, i32 0, null, i32 22} ; [ DW_TAG_subprogram ] [line 22] [priv_default]
130 !22 = metadata !{i32 786455, metadata !1, null, metadata !"U", i32 25, i64 32, i64 32, i64 0, i32 0, null, metadata !23, i32 0, null, null, metadata !"_ZTS1U"} ; [ DW_TAG_union_type ] [U] [line 25, size 32, align 32, offset 0] [def] [from ]
131 !23 = metadata !{metadata !24, metadata !25}
132 !24 = metadata !{i32 786445, metadata !1, metadata !"_ZTS1U", metadata !"union_priv", i32 30, i64 32, i64 32, i64 0, i32 1, metadata !7} ; [ DW_TAG_member ] [union_priv] [line 30, size 32, align 32, offset 0] [private] [from int]
133 !25 = metadata !{i32 786478, metadata !1, metadata !"_ZTS1U", metadata !"union_pub_default", metadata !"union_pub_default", metadata !"_ZN1U17union_pub_defaultEv", i32 27, metadata !26, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 false, null, null, i32 0, null, i32 27} ; [ DW_TAG_subprogram ] [line 27] [union_pub_default]
134 !26 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !27, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
135 !27 = metadata !{null, metadata !28}
136 !28 = metadata !{i32 786447, null, null, metadata !"", i32 0, i64 64, i64 64, i64 0, i32 1088, metadata !"_ZTS1U"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1U]
137 !29 = metadata !{metadata !30}
138 !30 = metadata !{i32 786478, metadata !1, metadata !31, metadata !"free", metadata !"free", metadata !"_Z4freev", i32 35, metadata !32, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, void ()* @_Z4freev, null, null, metadata !2, i32 35} ; [ DW_TAG_subprogram ] [line 35] [def] [free]
139 !31 = metadata !{i32 786473, metadata !1} ; [ DW_TAG_file_type ] [/llvm/tools/clang/test/CodeGenCXX/debug-info-access.cpp]
140 !32 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !33, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
141 !33 = metadata !{null}
142 !34 = metadata !{metadata !35, metadata !36, metadata !37}
143 !35 = metadata !{i32 786484, i32 0, null, metadata !"a", metadata !"a", metadata !"", metadata !31, i32 37, metadata !"_ZTS1A", i32 0, i32 1, %struct.A* @a, null} ; [ DW_TAG_variable ] [a] [line 37] [def]
144 !36 = metadata !{i32 786484, i32 0, null, metadata !"b", metadata !"b", metadata !"", metadata !31, i32 38, metadata !"_ZTS1B", i32 0, i32 1, %class.B* @b, null} ; [ DW_TAG_variable ] [b] [line 38] [def]
145 !37 = metadata !{i32 786484, i32 0, null, metadata !"u", metadata !"u", metadata !"", metadata !31, i32 39, metadata !"_ZTS1U", i32 0, i32 1, %union.U* @u, null} ; [ DW_TAG_variable ] [u] [line 39] [def]
146 !38 = metadata !{i32 2, metadata !"Dwarf Version", i32 2}
147 !39 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
148 !40 = metadata !{metadata !"clang version 3.6.0 "}
149 !41 = metadata !{i32 35, i32 14, metadata !30, null}
7878 !20 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"const_b", i32 7, i64 0, i64 0, i64 0, i32 4098, metadata !21, float 0x40091EB860000000} ; [ DW_TAG_member ] [const_b] [line 7, size 0, align 0, offset 0] [protected] [static] [from ]
7979 !21 = metadata !{i32 786470, null, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, metadata !22} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from float]
8080 !22 = metadata !{i32 786468, null, null, metadata !"float", i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ] [float] [line 0, size 32, align 32, offset 0, enc DW_ATE_float]
81 !23 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"c", i32 9, i64 0, i64 0, i64 0, i32 4096, metadata !9, null} ; [ DW_TAG_member ] [c] [line 9, size 0, align 0, offset 0] [static] [from int]
82 !24 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"const_c", i32 10, i64 0, i64 0, i64 0, i32 4096, metadata !25, i32 18} ; [ DW_TAG_member ] [const_c] [line 10, size 0, align 0, offset 0] [static] [from ]
81 !23 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"c", i32 9, i64 0, i64 0, i64 0, i32 4099, metadata !9, null} ; [ DW_TAG_member ] [c] [line 9, size 0, align 0, offset 0] [static] [from int]
82 !24 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"const_c", i32 10, i64 0, i64 0, i64 0, i32 4099, metadata !25, i32 18} ; [ DW_TAG_member ] [const_c] [line 10, size 0, align 0, offset 0] [static] [from ]
8383 !25 = metadata !{i32 786470, null, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, metadata !9} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from int]
84 !26 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"d", i32 11, i64 32, i64 32, i64 0, i32 0, metadata !9} ; [ DW_TAG_member ] [d] [line 11, size 32, align 32, offset 0] [from int]
84 !26 = metadata !{i32 786445, metadata !33, metadata !13, metadata !"d", i32 11, i64 32, i64 32, i64 0, i32 3, metadata !9} ; [ DW_TAG_member ] [d] [line 11, size 32, align 32, offset 0] [from int]
8585 !27 = metadata !{i32 786484, i32 0, metadata !13, metadata !"b", metadata !"b", metadata !"_ZN1C1bE", metadata !6, i32 15, metadata !9, i32 0, i32 1, i32* @_ZN1C1bE, metadata !19} ; [ DW_TAG_variable ] [b] [line 15] [def]
8686 !28 = metadata !{i32 786484, i32 0, metadata !13, metadata !"c", metadata !"c", metadata !"_ZN1C1cE", metadata !6, i32 16, metadata !9, i32 0, i32 1, i32* @_ZN1C1cE, metadata !23} ; [ DW_TAG_variable ] [c] [line 16] [def]
8787 !29 = metadata !{i32 786688, metadata !5, metadata !"instance_C", metadata !6, i32 20, metadata !13, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [instance_C] [line 20]
22
33 ; Based on the debuginfo-tests/sret.cpp code.
44
5 ; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x5b59949640ec1580)
6 ; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x5b59949640ec1580)
5 ; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1)
6 ; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1)
77
88 %class.A = type { i32 (...)**, i32 }
99 %class.B = type { i8 }
9393 !11 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !12, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
9494 !12 = metadata !{metadata !13}
9595 !13 = metadata !{i32 786468, null, null, metadata !"int", 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]
96 !14 = metadata !{i32 786478, metadata !5, metadata !"_ZTS1A", metadata !"setFoo", metadata !"setFoo", metadata !"_ZN1A6setFooEv", i32 4, metadata !15, i1 false, i1 false, i32 1, i32 0, metadata !"_ZTS1A", i32 256, i1 false, null, null, i32 0, metadata !18, i32 4} ; [ DW_TAG_subprogram ] [line 4] [setFoo]
96 !14 = metadata !{i32 786478, metadata !5, metadata !"_ZTS1A", metadata !"setFoo", metadata !"setFoo", metadata !"_ZN1A6setFooEv", i32 4, metadata !15, i1 false, i1 false, i32 1, i32 0, metadata !"_ZTS1A", i32 259, i1 false, null, null, i32 0, metadata !18, i32 4} ; [ DW_TAG_subprogram ] [line 4] [setFoo]
9797 !15 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !16, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
9898 !16 = metadata !{null, metadata !17}
9999 !17 = metadata !{i32 786447, null, null, metadata !"", i32 0, i64 64, i64 64, i64 0, i32 1088, metadata !"_ZTS1A"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1A]
100100 !18 = metadata !{i32 786468}
101 !19 = metadata !{i32 786478, metadata !5, metadata !"_ZTS1A", metadata !"getFoo", metadata !"getFoo", metadata !"_ZN1A6getFooEv", i32 5, metadata !20, i1 false, i1 false, i32 1, i32 1, metadata !"_ZTS1A", i32 256, i1 false, null, null, i32 0, metadata !25, i32 5} ; [ DW_TAG_subprogram ] [line 5] [getFoo]
101 !19 = metadata !{i32 786478, metadata !5, metadata !"_ZTS1A", metadata !"getFoo", metadata !"getFoo", metadata !"_ZN1A6getFooEv", i32 5, metadata !20, i1 false, i1 false, i32 1, i32 1, metadata !"_ZTS1A", i32 259, i1 false, null, null, i32 0, metadata !25, i32 5} ; [ DW_TAG_subprogram ] [line 5] [getFoo]
102102 !20 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !21, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
103103 !21 = metadata !{metadata !22, metadata !17}
104104 !22 = metadata !{i32 786470, null, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, metadata !23} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from foo_t]
6060 !11 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !12, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
6161 !12 = metadata !{metadata !13}
6262 !13 = metadata !{i32 786468, null, null, metadata !"int", 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]
63 !14 = metadata !{i32 786478, metadata !5, metadata !"_ZTS1A", metadata !"setFoo", metadata !"setFoo", metadata !"_ZN1A6setFooEv", i32 4, metadata !15, i1 false, i1 false, i32 1, i32 0, metadata !"_ZTS1A", i32 256, i1 false, null, null, i32 0, metadata !18, i32 4} ; [ DW_TAG_subprogram ] [line 4] [setFoo]
63 !14 = metadata !{i32 786478, metadata !5, metadata !"_ZTS1A", metadata !"setFoo", metadata !"setFoo", metadata !"_ZN1A6setFooEv", i32 4, metadata !15, i1 false, i1 false, i32 1, i32 0, metadata !"_ZTS1A", i32 259, i1 false, null, null, i32 0, metadata !18, i32 4} ; [ DW_TAG_subprogram ] [line 4] [setFoo]
6464 !15 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !16, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
6565 !16 = metadata !{null, metadata !17}
6666 !17 = metadata !{i32 786447, null, null, metadata !"", i32 0, i64 64, i64 64, i64 0, i32 1088, metadata !"_ZTS1A"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1A]
6767 !18 = metadata !{i32 786468}
68 !19 = metadata !{i32 786478, metadata !5, metadata !"_ZTS1A", metadata !"getFoo", metadata !"getFoo", metadata !"_ZN1A6getFooEv", i32 5, metadata !20, i1 false, i1 false, i32 1, i32 1, metadata !"_ZTS1A", i32 256, i1 false, null, null, i32 0, metadata !24, i32 5} ; [ DW_TAG_subprogram ] [line 5] [getFoo]
68 !19 = metadata !{i32 786478, metadata !5, metadata !"_ZTS1A", metadata !"getFoo", metadata !"getFoo", metadata !"_ZN1A6getFooEv", i32 5, metadata !20, i1 false, i1 false, i32 1, i32 1, metadata !"_ZTS1A", i32 259, i1 false, null, null, i32 0, metadata !24, i32 5} ; [ DW_TAG_subprogram ] [line 5] [getFoo]
6969 !20 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !21, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
7070 !21 = metadata !{metadata !22, metadata !17}
7171 !22 = metadata !{i32 786470, null, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, metadata !23} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from foo_t]
7272 !23 = metadata !{i32 786454, metadata !5, null, metadata !"foo_t", i32 1, i64 0, i64 0, i64 0, i32 0, metadata !13} ; [ DW_TAG_typedef ] [foo_t] [line 1, size 0, align 0, offset 0] [from int]
7373 !24 = metadata !{i32 786468}
7474 !25 = metadata !{metadata !26, metadata !28}
75 !26 = metadata !{i32 786478, metadata !27, metadata !"_ZTS1A", metadata !"setFoo", metadata !"setFoo", metadata !"_ZN1A6setFooEv", i32 2, metadata !15, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, void (%class.A*)* @_ZN1A6setFooEv, null, metadata !14, metadata !2, i32 2} ; [ DW_TAG_subprogram ] [line 2] [def] [setFoo]
75 !26 = metadata !{i32 786478, metadata !27, metadata !"_ZTS1A", metadata !"setFoo", metadata !"setFoo", metadata !"_ZN1A6setFooEv", i32 2, metadata !15, i1 false, i1 true, i32 0, i32 0, null, i32 259, i1 false, void (%class.A*)* @_ZN1A6setFooEv, null, metadata !14, metadata !2, i32 2} ; [ DW_TAG_subprogram ] [line 2] [def] [setFoo]
7676 !27 = metadata !{metadata !"b.cpp", metadata !""}
77 !28 = metadata !{i32 786478, metadata !27, metadata !"_ZTS1A", metadata !"getFoo", metadata !"getFoo", metadata !"_ZN1A6getFooEv", i32 4, metadata !20, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 (%class.A*)* @_ZN1A6getFooEv, null, metadata !19, metadata !2, i32 4} ; [ DW_TAG_subprogram ] [line 4] [def] [getFoo]
77 !28 = metadata !{i32 786478, metadata !27, metadata !"_ZTS1A", metadata !"getFoo", metadata !"getFoo", metadata !"_ZN1A6getFooEv", i32 4, metadata !20, i1 false, i1 true, i32 0, i32 0, null, i32 259, i1 false, i32 (%class.A*)* @_ZN1A6getFooEv, null, metadata !19, metadata !2, i32 4} ; [ DW_TAG_subprogram ] [line 4] [def] [getFoo]
7878 !29 = metadata !{i32 2, metadata !"Dwarf Version", i32 2}
7979 !30 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
8080 !31 = metadata !{metadata !"clang version 3.5 "}