1 ; RUN: llc -split-dwarf-file=foo.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t
2 ; RUN: llvm-dwarfdump -v -all %t | FileCheck %s --check-prefix=CHECK-DWO
4 ; Based on the debuginfo-tests/sret.cpp code.
6 ; CHECK-DWO: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1)
7 ; CHECK-DWO: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1)
9 ; RUN: llc -O0 -fast-isel=true -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
10 ; RUN: llc -O0 -fast-isel=false -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
11 ; CHECK: _ZN1B9AInstanceEv
12 ; CHECK: DW_TAG_variable
13 ; CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x00000000
14 ; CHECK-NEXT: [0xffffffffffffffff, {{.*}}): {{$}}
15 ; CHECK-NEXT: [{{.*}}, {{.*}}): DW_OP_breg5 RDI+0
16 ; CHECK-NEXT: [{{.*}}, {{.*}}): DW_OP_breg6 RBP-24, DW_OP_deref)
17 ; CHECK-NEXT: DW_AT_name {{.*}}"a"
19 %class.A = type { i32 (...)**, i32 }
20 %class.B = type { i8 }
22 @_ZTV1A = linkonce_odr unnamed_addr constant [4 x i8*] [i8* null, i8* bitcast ({ i8*, i8* }* @_ZTI1A to i8*), i8* bitcast (void (%class.A*)* @_ZN1AD2Ev to i8*), i8* bitcast (void (%class.A*)* @_ZN1AD0Ev to i8*)]
23 @_ZTVN10__cxxabiv117__class_type_infoE = external global i8*
24 @_ZTS1A = linkonce_odr constant [3 x i8] c"1A\00"
25 @_ZTI1A = linkonce_odr constant { i8*, i8* } { i8* bitcast (i8** getelementptr inbounds (i8*, i8** @_ZTVN10__cxxabiv117__class_type_infoE, i64 2) to i8*), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @_ZTS1A, i32 0, i32 0) }
27 @_ZN1AC1Ei = alias void (%class.A*, i32), void (%class.A*, i32)* @_ZN1AC2Ei
28 @_ZN1AC1ERKS_ = alias void (%class.A*, %class.A*), void (%class.A*, %class.A*)* @_ZN1AC2ERKS_
30 ; Function Attrs: nounwind uwtable
31 define void @_ZN1AC2Ei(%class.A* %this, i32 %i) unnamed_addr #0 align 2 !dbg !49 {
33 %this.addr = alloca %class.A*, align 8
34 %i.addr = alloca i32, align 4
35 store %class.A* %this, %class.A** %this.addr, align 8
36 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !67, metadata !DIExpression()), !dbg !69
37 store i32 %i, i32* %i.addr, align 4
38 call void @llvm.dbg.declare(metadata i32* %i.addr, metadata !70, metadata !DIExpression()), !dbg !71
39 %this1 = load %class.A*, %class.A** %this.addr
40 %0 = bitcast %class.A* %this1 to i8***, !dbg !72
41 store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @_ZTV1A, i64 0, i64 2), i8*** %0, !dbg !72
42 %m_int = getelementptr inbounds %class.A, %class.A* %this1, i32 0, i32 1, !dbg !72
43 %1 = load i32, i32* %i.addr, align 4, !dbg !72
44 store i32 %1, i32* %m_int, align 4, !dbg !72
48 ; Function Attrs: nounwind readnone
49 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
51 ; Function Attrs: nounwind uwtable
52 define void @_ZN1AC2ERKS_(%class.A* %this, %class.A* %rhs) unnamed_addr #0 align 2 !dbg !50 {
54 %this.addr = alloca %class.A*, align 8
55 %rhs.addr = alloca %class.A*, align 8
56 store %class.A* %this, %class.A** %this.addr, align 8
57 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !74, metadata !DIExpression()), !dbg !75
58 store %class.A* %rhs, %class.A** %rhs.addr, align 8
59 call void @llvm.dbg.declare(metadata %class.A** %rhs.addr, metadata !76, metadata !DIExpression()), !dbg !77
60 %this1 = load %class.A*, %class.A** %this.addr
61 %0 = bitcast %class.A* %this1 to i8***, !dbg !78
62 store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @_ZTV1A, i64 0, i64 2), i8*** %0, !dbg !78
63 %m_int = getelementptr inbounds %class.A, %class.A* %this1, i32 0, i32 1, !dbg !78
64 %1 = load %class.A*, %class.A** %rhs.addr, align 8, !dbg !78
65 %m_int2 = getelementptr inbounds %class.A, %class.A* %1, i32 0, i32 1, !dbg !78
66 %2 = load i32, i32* %m_int2, align 4, !dbg !78
67 store i32 %2, i32* %m_int, align 4, !dbg !78
71 ; Function Attrs: nounwind uwtable
72 define %class.A* @_ZN1AaSERKS_(%class.A* %this, %class.A* %rhs) #0 align 2 !dbg !51 {
74 %this.addr = alloca %class.A*, align 8
75 %rhs.addr = alloca %class.A*, align 8
76 store %class.A* %this, %class.A** %this.addr, align 8
77 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !80, metadata !DIExpression()), !dbg !81
78 store %class.A* %rhs, %class.A** %rhs.addr, align 8
79 call void @llvm.dbg.declare(metadata %class.A** %rhs.addr, metadata !82, metadata !DIExpression()), !dbg !83
80 %this1 = load %class.A*, %class.A** %this.addr
81 %0 = load %class.A*, %class.A** %rhs.addr, align 8, !dbg !84
82 %m_int = getelementptr inbounds %class.A, %class.A* %0, i32 0, i32 1, !dbg !84
83 %1 = load i32, i32* %m_int, align 4, !dbg !84
84 %m_int2 = getelementptr inbounds %class.A, %class.A* %this1, i32 0, i32 1, !dbg !84
85 store i32 %1, i32* %m_int2, align 4, !dbg !84
86 ret %class.A* %this1, !dbg !85
89 ; Function Attrs: nounwind uwtable
90 define i32 @_ZN1A7get_intEv(%class.A* %this) #0 align 2 !dbg !52 {
92 %this.addr = alloca %class.A*, align 8
93 store %class.A* %this, %class.A** %this.addr, align 8
94 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !86, metadata !DIExpression()), !dbg !87
95 %this1 = load %class.A*, %class.A** %this.addr
96 %m_int = getelementptr inbounds %class.A, %class.A* %this1, i32 0, i32 1, !dbg !88
97 %0 = load i32, i32* %m_int, align 4, !dbg !88
101 ; Function Attrs: uwtable
102 define void @_ZN1B9AInstanceEv(%class.A* noalias sret %agg.result, %class.B* %this) #2 align 2 !dbg !53 {
104 %this.addr = alloca %class.B*, align 8
106 %cleanup.dest.slot = alloca i32
107 store %class.B* %this, %class.B** %this.addr, align 8
108 call void @llvm.dbg.declare(metadata %class.B** %this.addr, metadata !89, metadata !DIExpression()), !dbg !91
109 %this1 = load %class.B*, %class.B** %this.addr
110 store i1 false, i1* %nrvo, !dbg !92
111 call void @llvm.dbg.declare(metadata %class.A* %agg.result, metadata !93, metadata !DIExpression()), !dbg !92
112 call void @_ZN1AC1Ei(%class.A* %agg.result, i32 12), !dbg !92
113 store i1 true, i1* %nrvo, !dbg !94
114 store i32 1, i32* %cleanup.dest.slot
115 %nrvo.val = load i1, i1* %nrvo, !dbg !95
116 br i1 %nrvo.val, label %nrvo.skipdtor, label %nrvo.unused, !dbg !95
118 nrvo.unused: ; preds = %entry
119 call void @_ZN1AD2Ev(%class.A* %agg.result), !dbg !96
120 br label %nrvo.skipdtor, !dbg !96
122 nrvo.skipdtor: ; preds = %nrvo.unused, %entry
126 ; Function Attrs: nounwind uwtable
127 define linkonce_odr void @_ZN1AD2Ev(%class.A* %this) unnamed_addr #0 align 2 !dbg !63 {
129 %this.addr = alloca %class.A*, align 8
130 store %class.A* %this, %class.A** %this.addr, align 8
131 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !101, metadata !DIExpression()), !dbg !102
132 %this1 = load %class.A*, %class.A** %this.addr
136 ; Function Attrs: uwtable
137 define i32 @main(i32 %argc, i8** %argv) #2 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) !dbg !54 {
139 %retval = alloca i32, align 4
140 %argc.addr = alloca i32, align 4
141 %argv.addr = alloca i8**, align 8
142 %b = alloca %class.B, align 1
143 %return_val = alloca i32, align 4
144 %temp.lvalue = alloca %class.A, align 8
145 %exn.slot = alloca i8*
146 %ehselector.slot = alloca i32
147 %a = alloca %class.A, align 8
148 %cleanup.dest.slot = alloca i32
149 store i32 0, i32* %retval
150 store i32 %argc, i32* %argc.addr, align 4
151 call void @llvm.dbg.declare(metadata i32* %argc.addr, metadata !104, metadata !DIExpression()), !dbg !105
152 store i8** %argv, i8*** %argv.addr, align 8
153 call void @llvm.dbg.declare(metadata i8*** %argv.addr, metadata !106, metadata !DIExpression()), !dbg !105
154 call void @llvm.dbg.declare(metadata %class.B* %b, metadata !107, metadata !DIExpression()), !dbg !108
155 call void @_ZN1BC2Ev(%class.B* %b), !dbg !108
156 call void @llvm.dbg.declare(metadata i32* %return_val, metadata !109, metadata !DIExpression()), !dbg !110
157 call void @_ZN1B9AInstanceEv(%class.A* sret %temp.lvalue, %class.B* %b), !dbg !110
158 %call = invoke i32 @_ZN1A7get_intEv(%class.A* %temp.lvalue)
159 to label %invoke.cont unwind label %lpad, !dbg !110
161 invoke.cont: ; preds = %entry
162 call void @_ZN1AD2Ev(%class.A* %temp.lvalue), !dbg !111
163 store i32 %call, i32* %return_val, align 4, !dbg !111
164 call void @llvm.dbg.declare(metadata %class.A* %a, metadata !113, metadata !DIExpression()), !dbg !114
165 call void @_ZN1B9AInstanceEv(%class.A* sret %a, %class.B* %b), !dbg !114
166 %0 = load i32, i32* %return_val, align 4, !dbg !115
167 store i32 %0, i32* %retval, !dbg !115
168 store i32 1, i32* %cleanup.dest.slot
169 call void @_ZN1AD2Ev(%class.A* %a), !dbg !116
170 %1 = load i32, i32* %retval, !dbg !116
171 ret i32 %1, !dbg !116
173 lpad: ; preds = %entry
174 %2 = landingpad { i8*, i32 }
176 %3 = extractvalue { i8*, i32 } %2, 0, !dbg !116
177 store i8* %3, i8** %exn.slot, !dbg !116
178 %4 = extractvalue { i8*, i32 } %2, 1, !dbg !116
179 store i32 %4, i32* %ehselector.slot, !dbg !116
180 invoke void @_ZN1AD2Ev(%class.A* %temp.lvalue)
181 to label %invoke.cont1 unwind label %terminate.lpad, !dbg !116
183 invoke.cont1: ; preds = %lpad
184 br label %eh.resume, !dbg !117
186 eh.resume: ; preds = %invoke.cont1
187 %exn = load i8*, i8** %exn.slot, !dbg !119
188 %sel = load i32, i32* %ehselector.slot, !dbg !119
189 %lpad.val = insertvalue { i8*, i32 } undef, i8* %exn, 0, !dbg !119
190 %lpad.val2 = insertvalue { i8*, i32 } %lpad.val, i32 %sel, 1, !dbg !119
191 resume { i8*, i32 } %lpad.val2, !dbg !119
193 terminate.lpad: ; preds = %lpad
194 %5 = landingpad { i8*, i32 }
195 catch i8* null, !dbg !121
196 %6 = extractvalue { i8*, i32 } %5, 0, !dbg !121
197 call void @__clang_call_terminate(i8* %6) #5, !dbg !121
198 unreachable, !dbg !121
201 ; Function Attrs: nounwind uwtable
202 define linkonce_odr void @_ZN1BC2Ev(%class.B* %this) unnamed_addr #0 align 2 !dbg !62 {
204 %this.addr = alloca %class.B*, align 8
205 store %class.B* %this, %class.B** %this.addr, align 8
206 call void @llvm.dbg.declare(metadata %class.B** %this.addr, metadata !123, metadata !DIExpression()), !dbg !124
207 %this1 = load %class.B*, %class.B** %this.addr
211 declare i32 @__gxx_personality_v0(...)
213 ; Function Attrs: noinline noreturn nounwind
214 define linkonce_odr hidden void @__clang_call_terminate(i8*) #3 {
215 %2 = call i8* @__cxa_begin_catch(i8* %0) #6
216 call void @_ZSt9terminatev() #5
220 declare i8* @__cxa_begin_catch(i8*)
222 declare void @_ZSt9terminatev()
224 ; Function Attrs: uwtable
225 define linkonce_odr void @_ZN1AD0Ev(%class.A* %this) unnamed_addr #2 align 2 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) !dbg !61 {
227 %this.addr = alloca %class.A*, align 8
228 %exn.slot = alloca i8*
229 %ehselector.slot = alloca i32
230 store %class.A* %this, %class.A** %this.addr, align 8
231 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !126, metadata !DIExpression()), !dbg !127
232 %this1 = load %class.A*, %class.A** %this.addr
233 invoke void @_ZN1AD2Ev(%class.A* %this1)
234 to label %invoke.cont unwind label %lpad, !dbg !128
236 invoke.cont: ; preds = %entry
237 %0 = bitcast %class.A* %this1 to i8*, !dbg !129
238 call void @_ZdlPv(i8* %0) #7, !dbg !129
241 lpad: ; preds = %entry
242 %1 = landingpad { i8*, i32 }
244 %2 = extractvalue { i8*, i32 } %1, 0, !dbg !131
245 store i8* %2, i8** %exn.slot, !dbg !131
246 %3 = extractvalue { i8*, i32 } %1, 1, !dbg !131
247 store i32 %3, i32* %ehselector.slot, !dbg !131
248 %4 = bitcast %class.A* %this1 to i8*, !dbg !131
249 call void @_ZdlPv(i8* %4) #7, !dbg !131
250 br label %eh.resume, !dbg !131
252 eh.resume: ; preds = %lpad
253 %exn = load i8*, i8** %exn.slot, !dbg !133
254 %sel = load i32, i32* %ehselector.slot, !dbg !133
255 %lpad.val = insertvalue { i8*, i32 } undef, i8* %exn, 0, !dbg !133
256 %lpad.val2 = insertvalue { i8*, i32 } %lpad.val, i32 %sel, 1, !dbg !133
257 resume { i8*, i32 } %lpad.val2, !dbg !133
260 ; Function Attrs: nobuiltin nounwind
261 declare void @_ZdlPv(i8*) #4
263 attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
264 attributes #1 = { nounwind readnone }
265 attributes #2 = { uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
266 attributes #3 = { noinline noreturn nounwind }
267 attributes #4 = { nobuiltin nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
268 attributes #5 = { noreturn nounwind }
269 attributes #6 = { nounwind }
270 attributes #7 = { builtin nounwind }
273 !llvm.module.flags = !{!64, !65}
276 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5.0 (trunk 203283) (llvm/trunk 203307)", isOptimized: false, splitDebugFilename: "sret.dwo", emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !3, globals: !2, imports: !2)
277 !1 = !DIFile(filename: "sret.cpp", directory: "/usr/local/google/home/echristo/tmp")
280 !4 = !DICompositeType(tag: DW_TAG_class_type, name: "A", line: 1, size: 128, align: 64, file: !1, elements: !5, vtableHolder: !4, identifier: "_ZTS1A")
281 !5 = !{!6, !13, !14, !19, !25, !29, !33}
282 !6 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$A", size: 64, flags: DIFlagArtificial, file: !1, scope: !7, baseType: !8)
283 !7 = !DIFile(filename: "sret.cpp", directory: "/usr/local/google/home/echristo/tmp")
284 !8 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, baseType: !9)
285 !9 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", size: 64, baseType: !10)
286 !10 = !DISubroutineType(types: !11)
288 !12 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
289 !13 = !DIDerivedType(tag: DW_TAG_member, name: "m_int", line: 13, size: 32, align: 32, offset: 64, flags: DIFlagProtected, file: !1, scope: !4, baseType: !12)
290 !14 = !DISubprogram(name: "A", line: 4, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 4, file: !1, scope: !4, type: !15)
291 !15 = !DISubroutineType(types: !16)
292 !16 = !{null, !17, !12}
293 !17 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer, baseType: !4)
294 !19 = !DISubprogram(name: "A", line: 5, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 5, file: !1, scope: !4, type: !20)
295 !20 = !DISubroutineType(types: !21)
296 !21 = !{null, !17, !22}
297 !22 = !DIDerivedType(tag: DW_TAG_reference_type, size: 64, align: 64, baseType: !23)
298 !23 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !4)
299 !25 = !DISubprogram(name: "operator=", linkageName: "_ZN1AaSERKS_", line: 7, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 7, file: !1, scope: !4, type: !26)
300 !26 = !DISubroutineType(types: !27)
301 !27 = !{!22, !17, !22}
302 !29 = !DISubprogram(name: "~A", line: 8, isLocal: false, isDefinition: false, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 8, file: !1, scope: !4, type: !30, containingType: !4)
303 !30 = !DISubroutineType(types: !31)
305 !33 = !DISubprogram(name: "get_int", linkageName: "_ZN1A7get_intEv", line: 10, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 10, file: !1, scope: !4, type: !34)
306 !34 = !DISubroutineType(types: !35)
308 !37 = !DICompositeType(tag: DW_TAG_class_type, name: "B", line: 38, size: 8, align: 8, file: !1, elements: !38, identifier: "_ZTS1B")
310 !39 = !DISubprogram(name: "B", line: 41, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 41, file: !1, scope: !37, type: !40)
311 !40 = !DISubroutineType(types: !41)
313 !42 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer, baseType: !37)
314 !44 = !DISubprogram(name: "AInstance", linkageName: "_ZN1B9AInstanceEv", line: 43, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 43, file: !1, scope: !37, type: !45)
315 !45 = !DISubroutineType(types: !46)
317 !49 = distinct !DISubprogram(name: "A", linkageName: "_ZN1AC2Ei", line: 16, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 18, file: !1, scope: !4, type: !15, declaration: !14, retainedNodes: !2)
318 !50 = distinct !DISubprogram(name: "A", linkageName: "_ZN1AC2ERKS_", line: 21, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 23, file: !1, scope: !4, type: !20, declaration: !19, retainedNodes: !2)
319 !51 = distinct !DISubprogram(name: "operator=", linkageName: "_ZN1AaSERKS_", line: 27, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 28, file: !1, scope: !4, type: !26, declaration: !25, retainedNodes: !2)
320 !52 = distinct !DISubprogram(name: "get_int", linkageName: "_ZN1A7get_intEv", line: 33, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 34, file: !1, scope: !4, type: !34, declaration: !33, retainedNodes: !2)
321 !53 = distinct !DISubprogram(name: "AInstance", linkageName: "_ZN1B9AInstanceEv", line: 47, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 48, file: !1, scope: !37, type: !45, declaration: !44, retainedNodes: !2)
322 !54 = distinct !DISubprogram(name: "main", line: 53, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 54, file: !1, scope: !7, type: !55, retainedNodes: !2)
323 !55 = !DISubroutineType(types: !56)
324 !56 = !{!12, !12, !57}
325 !57 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !58)
326 !58 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !59)
327 !59 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !60)
328 !60 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
329 !61 = distinct !DISubprogram(name: "~A", linkageName: "_ZN1AD0Ev", line: 8, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 8, file: !1, scope: !4, type: !30, declaration: !29, retainedNodes: !2)
330 !62 = distinct !DISubprogram(name: "B", linkageName: "_ZN1BC2Ev", line: 41, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 41, file: !1, scope: !37, type: !40, declaration: !39, retainedNodes: !2)
331 !63 = distinct !DISubprogram(name: "~A", linkageName: "_ZN1AD2Ev", line: 8, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 8, file: !1, scope: !4, type: !30, declaration: !29, retainedNodes: !2)
332 !64 = !{i32 2, !"Dwarf Version", i32 4}
333 !65 = !{i32 1, !"Debug Info Version", i32 3}
334 !66 = !{!"clang version 3.5.0 (trunk 203283) (llvm/trunk 203307)"}
335 !67 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !49, type: !68)
336 !68 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !4)
337 !69 = !DILocation(line: 0, scope: !49)
338 !70 = !DILocalVariable(name: "i", line: 16, arg: 2, scope: !49, file: !7, type: !12)
339 !71 = !DILocation(line: 16, scope: !49)
340 !72 = !DILocation(line: 18, scope: !49)
341 !73 = !DILocation(line: 19, scope: !49)
342 !74 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !50, type: !68)
343 !75 = !DILocation(line: 0, scope: !50)
344 !76 = !DILocalVariable(name: "rhs", line: 21, arg: 2, scope: !50, file: !7, type: !22)
345 !77 = !DILocation(line: 21, scope: !50)
346 !78 = !DILocation(line: 23, scope: !50)
347 !79 = !DILocation(line: 24, scope: !50)
348 !80 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !51, type: !68)
349 !81 = !DILocation(line: 0, scope: !51)
350 !82 = !DILocalVariable(name: "rhs", line: 27, arg: 2, scope: !51, file: !7, type: !22)
351 !83 = !DILocation(line: 27, scope: !51)
352 !84 = !DILocation(line: 29, scope: !51)
353 !85 = !DILocation(line: 30, scope: !51)
354 !86 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !52, type: !68)
355 !87 = !DILocation(line: 0, scope: !52)
356 !88 = !DILocation(line: 35, scope: !52)
357 !89 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !53, type: !90)
358 !90 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !37)
359 !91 = !DILocation(line: 0, scope: !53)
360 !92 = !DILocation(line: 49, scope: !53)
361 !93 = !DILocalVariable(name: "a", line: 49, scope: !53, file: !7, type: !4)
362 !94 = !DILocation(line: 50, scope: !53)
363 !95 = !DILocation(line: 51, scope: !53)
364 !96 = !DILocation(line: 51, scope: !97)
365 !97 = distinct !DILexicalBlock(line: 51, column: 0, file: !1, scope: !53)
366 !98 = !DILocation(line: 51, scope: !99)
367 !99 = distinct !DILexicalBlock(line: 51, column: 0, file: !1, scope: !100)
368 !100 = distinct !DILexicalBlock(line: 51, column: 0, file: !1, scope: !53)
369 !101 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !63, type: !68)
370 !102 = !DILocation(line: 0, scope: !63)
371 !103 = !DILocation(line: 8, scope: !63)
372 !104 = !DILocalVariable(name: "argc", line: 53, arg: 1, scope: !54, file: !7, type: !12)
373 !105 = !DILocation(line: 53, scope: !54)
374 !106 = !DILocalVariable(name: "argv", line: 53, arg: 2, scope: !54, file: !7, type: !57)
375 !107 = !DILocalVariable(name: "b", line: 55, scope: !54, file: !7, type: !37)
376 !108 = !DILocation(line: 55, scope: !54)
377 !109 = !DILocalVariable(name: "return_val", line: 56, scope: !54, file: !7, type: !12)
378 !110 = !DILocation(line: 56, scope: !54)
379 !111 = !DILocation(line: 56, scope: !112)
380 !112 = distinct !DILexicalBlock(line: 56, column: 0, file: !1, scope: !54)
381 !113 = !DILocalVariable(name: "a", line: 58, scope: !54, file: !7, type: !4)
382 !114 = !DILocation(line: 58, scope: !54)
383 !115 = !DILocation(line: 59, scope: !54)
384 !116 = !DILocation(line: 60, scope: !54)
385 !117 = !DILocation(line: 60, scope: !118)
386 !118 = distinct !DILexicalBlock(line: 60, column: 0, file: !1, scope: !54)
387 !119 = !DILocation(line: 60, scope: !120)
388 !120 = distinct !DILexicalBlock(line: 60, column: 0, file: !1, scope: !54)
389 !121 = !DILocation(line: 60, scope: !122)
390 !122 = distinct !DILexicalBlock(line: 60, column: 0, file: !1, scope: !54)
391 !123 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !62, type: !90)
392 !124 = !DILocation(line: 0, scope: !62)
393 !125 = !DILocation(line: 41, scope: !62)
394 !126 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !61, type: !68)
395 !127 = !DILocation(line: 0, scope: !61)
396 !128 = !DILocation(line: 8, scope: !61)
397 !129 = !DILocation(line: 8, scope: !130)
398 !130 = distinct !DILexicalBlock(line: 8, column: 0, file: !1, scope: !61)
399 !131 = !DILocation(line: 8, scope: !132)
400 !132 = distinct !DILexicalBlock(line: 8, column: 0, file: !1, scope: !61)
401 !133 = !DILocation(line: 8, scope: !134)
402 !134 = distinct !DILexicalBlock(line: 8, column: 0, file: !1, scope: !61)