1; RUN: llc < %s -filetype=obj | llvm-readobj - --codeview | FileCheck %s
2; RUN: llc < %s | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj - --codeview | FileCheck %s
3
4; C++ source used to generate IR:
5; $ cat t.cpp
6; struct A {
7;   virtual int f();
8; };
9; struct B {
10;   virtual int g() = 0;
11; };
12; struct C : A, B {
13;   int c = 42;
14;   virtual int g();
15; };
16; int C::g() { return c; }
17; struct D : virtual B {
18;   int d = 13;
19;   virtual int g();
20; };
21; int D::g() { return d; }
22; $ clang t.cpp -S -emit-llvm -fstandalone-debug -g -gcodeview -o t.ll
23
24; A::f
25; CHECK:      MemberFunction ({{.*}}) {
26; CHECK-NEXT:   TypeLeafKind: LF_MFUNCTION (0x1009)
27; CHECK-NEXT:   ReturnType: int (0x74)
28; CHECK-NEXT:   ClassType: A ({{.*}})
29; CHECK-NEXT:   ThisType: A* const ({{.*}})
30; CHECK-NEXT:   CallingConvention: NearC (0x0)
31; CHECK-NEXT:   FunctionOptions [ (0x0)
32; CHECK-NEXT:   ]
33; CHECK-NEXT:   NumParameters: 0
34; CHECK-NEXT:   ArgListType: () ({{.*}})
35; CHECK-NEXT:   ThisAdjustment: 0
36; CHECK-NEXT: }
37
38; A::g
39; CHECK:      MemberFunction ({{.*}}) {
40; CHECK-NEXT:   TypeLeafKind: LF_MFUNCTION (0x1009)
41; CHECK-NEXT:   ReturnType: int (0x74)
42; CHECK-NEXT:   ClassType: B ({{.*}})
43; CHECK-NEXT:   ThisType: B* const ({{.*}})
44; CHECK-NEXT:   CallingConvention: NearC (0x0)
45; CHECK-NEXT:   FunctionOptions [ (0x0)
46; CHECK-NEXT:   ]
47; CHECK-NEXT:   NumParameters: 0
48; CHECK-NEXT:   ArgListType: () ({{.*}})
49; CHECK-NEXT:   ThisAdjustment: 0
50; CHECK-NEXT: }
51
52; C::g
53; CHECK:      MemberFunction ([[C_g:.*]]) {
54; CHECK-NEXT:   TypeLeafKind: LF_MFUNCTION (0x1009)
55; CHECK-NEXT:   ReturnType: int (0x74)
56; CHECK-NEXT:   ClassType: C ({{.*}})
57; CHECK-NEXT:   ThisType: C* const ({{.*}})
58; CHECK-NEXT:   CallingConvention: NearC (0x0)
59; CHECK-NEXT:   FunctionOptions [ (0x0)
60; CHECK-NEXT:   ]
61; CHECK-NEXT:   NumParameters: 0
62; CHECK-NEXT:   ArgListType: () ({{.*}})
63; CHECK-NEXT:   ThisAdjustment: 8
64; CHECK-NEXT: }
65
66; CHECK:      FieldList ({{.*}}) {
67; CHECK:        OneMethod {
68; CHECK-NEXT:     TypeLeafKind: LF_ONEMETHOD (0x1511)
69; CHECK-NEXT:     AccessSpecifier: Public (0x3)
70; CHECK-NEXT:     MethodKind: Virtual (0x1)
71; CHECK-NEXT:     Type: int C::() ([[C_g]])
72; CHECK-NEXT:     Name: g
73; CHECK-NEXT:   }
74; CHECK-NEXT: }
75
76; D::g
77; CHECK:      MemberFunction ([[D_g:.*]]) {
78; CHECK-NEXT:   TypeLeafKind: LF_MFUNCTION (0x1009)
79; CHECK-NEXT:   ReturnType: int (0x74)
80; CHECK-NEXT:   ClassType: D ({{.*}})
81; CHECK-NEXT:   ThisType: D* const ({{.*}})
82; CHECK-NEXT:   CallingConvention: NearC (0x0)
83; CHECK-NEXT:   FunctionOptions [ (0x0)
84; CHECK-NEXT:   ]
85; CHECK-NEXT:   NumParameters: 0
86; CHECK-NEXT:   ArgListType: () ({{.*}})
87; CHECK-NEXT:   ThisAdjustment: 16
88; CHECK-NEXT: }
89
90; CHECK:      FieldList ({{.*}}) {
91; CHECK:        OneMethod {
92; CHECK-NEXT:     TypeLeafKind: LF_ONEMETHOD (0x1511)
93; CHECK-NEXT:     AccessSpecifier: Public (0x3)
94; CHECK-NEXT:     MethodKind: Virtual (0x1)
95; CHECK-NEXT:     Type: int D::() ([[D_g]])
96; CHECK-NEXT:     Name: g
97; CHECK-NEXT:   }
98; CHECK-NEXT: }
99
100; Need to skip constructor IDs...
101; CHECK: MemberFuncId ({{.*}}) {
102; CHECK:   TypeLeafKind: LF_MFUNC_ID (0x1602)
103; CHECK:   ClassType: A
104; CHECK:   FunctionType: void A::()
105; CHECK:   Name: A
106; CHECK: }
107; CHECK: MemberFuncId ({{.*}}) {
108; CHECK:   TypeLeafKind: LF_MFUNC_ID (0x1602)
109; CHECK:   ClassType: B
110; CHECK:   FunctionType: void B::()
111; CHECK:   Name: B
112; CHECK: }
113; CHECK: MemberFuncId ({{.*}}) {
114; CHECK:   TypeLeafKind: LF_MFUNC_ID (0x1602)
115; CHECK:   ClassType: C
116; CHECK:   FunctionType: void C::()
117; CHECK:   Name: C
118; CHECK: }
119; CHECK: MemberFuncId ({{.*}}) {
120; CHECK:   TypeLeafKind: LF_MFUNC_ID (0x1602)
121; CHECK:   ClassType: D
122; CHECK:   FunctionType: void D::()
123; CHECK:   Name: D
124; CHECK: }
125
126; CHECK:      MemberFuncId ({{.*}}) {
127; CHECK-NEXT:   TypeLeafKind: LF_MFUNC_ID (0x1602)
128; CHECK-NEXT:   ClassType: C ({{.*}})
129; CHECK-NEXT:   FunctionType: int C::() ([[C_g]])
130; CHECK-NEXT:   Name: g
131; CHECK-NEXT: }
132
133; CHECK:      MemberFuncId ({{.*}}) {
134; CHECK-NEXT:   TypeLeafKind: LF_MFUNC_ID (0x1602)
135; CHECK-NEXT:   ClassType: D ({{.*}})
136; CHECK-NEXT:   FunctionType: int D::() ([[D_g]])
137; CHECK-NEXT:   Name: g
138; CHECK-NEXT: }
139
140; ModuleID = 't.cpp'
141source_filename = "t.cpp"
142target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
143target triple = "x86_64-pc-windows-msvc19.0.23918"
144
145%struct.A = type { i32 (...)** }
146%struct.B = type { i32 (...)** }
147%struct.C = type { %struct.A, %struct.B, i32 }
148%struct.D = type { i32*, i32, %struct.B }
149
150$"\01??0A@@QEAA@XZ" = comdat any
151
152$"\01??0B@@QEAA@XZ" = comdat any
153
154$"\01??0C@@QEAA@XZ" = comdat any
155
156$"\01??0D@@QEAA@XZ" = comdat any
157
158$"\01?g@C@@UEAAHXZ" = comdat any
159
160$"\01?g@D@@UEAAHXZ" = comdat any
161
162$"\01??_7A@@6B@" = comdat any
163
164$"\01??_7B@@6B@" = comdat any
165
166$"\01??_7C@@6BA@@@" = comdat any
167
168$"\01??_7C@@6BB@@@" = comdat any
169
170$"\01??_8D@@7B@" = comdat any
171
172$"\01??_7D@@6B@" = comdat any
173
174@"\01??_7A@@6B@" = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast (i32 (%struct.A*)* @"\01?f@A@@UEAAHXZ" to i8*)], comdat
175@"\01??_7B@@6B@" = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast (i32 (%struct.B*)* @"\01?g@B@@UEAAHXZ" to i8*)], comdat
176@"\01??_7C@@6BA@@@" = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast (i32 (%struct.A*)* @"\01?f@A@@UEAAHXZ" to i8*)], comdat
177@"\01??_7C@@6BB@@@" = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast (i32 (i8*)* @"\01?g@C@@UEAAHXZ" to i8*)], comdat
178@"\01??_8D@@7B@" = linkonce_odr unnamed_addr constant [2 x i32] [i32 0, i32 16], comdat
179@"\01??_7D@@6B@" = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast (i32 (i8*)* @"\01?g@D@@UEAAHXZ" to i8*)], comdat
180
181; Function Attrs: uwtable
182define void @"\01?usetypes@@YAXXZ"() #0 !dbg !7 {
183entry:
184  %a = alloca %struct.A, align 8
185  %b = alloca %struct.B, align 8
186  %c = alloca %struct.C, align 8
187  %d = alloca %struct.D, align 8
188  call void @llvm.dbg.declare(metadata %struct.A* %a, metadata !10, metadata !23), !dbg !24
189  %call = call %struct.A* @"\01??0A@@QEAA@XZ"(%struct.A* %a) #5, !dbg !24
190  call void @llvm.dbg.declare(metadata %struct.B* %b, metadata !25, metadata !23), !dbg !33
191  %call1 = call %struct.B* @"\01??0B@@QEAA@XZ"(%struct.B* %b) #5, !dbg !33
192  call void @llvm.dbg.declare(metadata %struct.C* %c, metadata !34, metadata !23), !dbg !44
193  %call2 = call %struct.C* @"\01??0C@@QEAA@XZ"(%struct.C* %c) #5, !dbg !44
194  call void @llvm.dbg.declare(metadata %struct.D* %d, metadata !45, metadata !23), !dbg !55
195  %call3 = call %struct.D* @"\01??0D@@QEAA@XZ"(%struct.D* %d, i32 1) #5, !dbg !55
196  %0 = bitcast %struct.C* %c to i8*, !dbg !56
197  %1 = getelementptr i8, i8* %0, i64 8, !dbg !56
198  %call4 = call i32 @"\01?g@C@@UEAAHXZ"(i8* %1), !dbg !56
199  ret void, !dbg !57
200}
201
202; Function Attrs: nounwind readnone
203declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
204
205; Function Attrs: inlinehint nounwind uwtable
206define linkonce_odr %struct.A* @"\01??0A@@QEAA@XZ"(%struct.A* returned %this) unnamed_addr #2 comdat align 2 !dbg !58 {
207entry:
208  %this.addr = alloca %struct.A*, align 8
209  store %struct.A* %this, %struct.A** %this.addr, align 8
210  call void @llvm.dbg.declare(metadata %struct.A** %this.addr, metadata !62, metadata !23), !dbg !64
211  %this1 = load %struct.A*, %struct.A** %this.addr, align 8
212  %0 = bitcast %struct.A* %this1 to i32 (...)***, !dbg !65
213  store i32 (...)** bitcast ([1 x i8*]* @"\01??_7A@@6B@" to i32 (...)**), i32 (...)*** %0, align 8, !dbg !65
214  ret %struct.A* %this1, !dbg !65
215}
216
217; Function Attrs: inlinehint nounwind uwtable
218define linkonce_odr %struct.B* @"\01??0B@@QEAA@XZ"(%struct.B* returned %this) unnamed_addr #2 comdat align 2 !dbg !66 {
219entry:
220  %this.addr = alloca %struct.B*, align 8
221  store %struct.B* %this, %struct.B** %this.addr, align 8
222  call void @llvm.dbg.declare(metadata %struct.B** %this.addr, metadata !70, metadata !23), !dbg !72
223  %this1 = load %struct.B*, %struct.B** %this.addr, align 8
224  %0 = bitcast %struct.B* %this1 to i32 (...)***, !dbg !73
225  store i32 (...)** bitcast ([1 x i8*]* @"\01??_7B@@6B@" to i32 (...)**), i32 (...)*** %0, align 8, !dbg !73
226  ret %struct.B* %this1, !dbg !73
227}
228
229; Function Attrs: inlinehint nounwind uwtable
230define linkonce_odr %struct.C* @"\01??0C@@QEAA@XZ"(%struct.C* returned %this) unnamed_addr #2 comdat align 2 !dbg !74 {
231entry:
232  %this.addr = alloca %struct.C*, align 8
233  store %struct.C* %this, %struct.C** %this.addr, align 8
234  call void @llvm.dbg.declare(metadata %struct.C** %this.addr, metadata !78, metadata !23), !dbg !80
235  %this1 = load %struct.C*, %struct.C** %this.addr, align 8
236  %0 = bitcast %struct.C* %this1 to %struct.A*, !dbg !81
237  %call = call %struct.A* @"\01??0A@@QEAA@XZ"(%struct.A* %0) #5, !dbg !81
238  %1 = bitcast %struct.C* %this1 to i8*, !dbg !81
239  %2 = getelementptr inbounds i8, i8* %1, i64 8, !dbg !81
240  %3 = bitcast i8* %2 to %struct.B*, !dbg !81
241  %call2 = call %struct.B* @"\01??0B@@QEAA@XZ"(%struct.B* %3) #5, !dbg !81
242  %4 = bitcast %struct.C* %this1 to i32 (...)***, !dbg !81
243  store i32 (...)** bitcast ([1 x i8*]* @"\01??_7C@@6BA@@@" to i32 (...)**), i32 (...)*** %4, align 8, !dbg !81
244  %5 = bitcast %struct.C* %this1 to i8*, !dbg !81
245  %add.ptr = getelementptr inbounds i8, i8* %5, i64 8, !dbg !81
246  %6 = bitcast i8* %add.ptr to i32 (...)***, !dbg !81
247  store i32 (...)** bitcast ([1 x i8*]* @"\01??_7C@@6BB@@@" to i32 (...)**), i32 (...)*** %6, align 8, !dbg !81
248  %c = getelementptr inbounds %struct.C, %struct.C* %this1, i32 0, i32 2, !dbg !82
249  store i32 42, i32* %c, align 8, !dbg !82
250  ret %struct.C* %this1, !dbg !81
251}
252
253; Function Attrs: inlinehint nounwind uwtable
254define linkonce_odr %struct.D* @"\01??0D@@QEAA@XZ"(%struct.D* returned %this, i32 %is_most_derived) unnamed_addr #2 comdat align 2 !dbg !83 {
255entry:
256  %retval = alloca %struct.D*, align 8
257  %is_most_derived.addr = alloca i32, align 4
258  %this.addr = alloca %struct.D*, align 8
259  store i32 %is_most_derived, i32* %is_most_derived.addr, align 4
260  call void @llvm.dbg.declare(metadata i32* %is_most_derived.addr, metadata !87, metadata !23), !dbg !88
261  store %struct.D* %this, %struct.D** %this.addr, align 8
262  call void @llvm.dbg.declare(metadata %struct.D** %this.addr, metadata !89, metadata !23), !dbg !88
263  %this1 = load %struct.D*, %struct.D** %this.addr, align 8
264  store %struct.D* %this1, %struct.D** %retval, align 8
265  %is_most_derived2 = load i32, i32* %is_most_derived.addr, align 4
266  %is_complete_object = icmp ne i32 %is_most_derived2, 0, !dbg !91
267  br i1 %is_complete_object, label %ctor.init_vbases, label %ctor.skip_vbases, !dbg !91
268
269ctor.init_vbases:                                 ; preds = %entry
270  %this.int8 = bitcast %struct.D* %this1 to i8*, !dbg !91
271  %0 = getelementptr inbounds i8, i8* %this.int8, i64 0, !dbg !91
272  %vbptr.D = bitcast i8* %0 to i32**, !dbg !91
273  store i32* getelementptr inbounds ([2 x i32], [2 x i32]* @"\01??_8D@@7B@", i32 0, i32 0), i32** %vbptr.D, align 8, !dbg !91
274  %1 = bitcast %struct.D* %this1 to i8*, !dbg !91
275  %2 = getelementptr inbounds i8, i8* %1, i64 16, !dbg !91
276  %3 = bitcast i8* %2 to %struct.B*, !dbg !91
277  %call = call %struct.B* @"\01??0B@@QEAA@XZ"(%struct.B* %3) #5, !dbg !91
278  br label %ctor.skip_vbases, !dbg !91
279
280ctor.skip_vbases:                                 ; preds = %ctor.init_vbases, %entry
281  %4 = bitcast %struct.D* %this1 to i8*, !dbg !91
282  %vbptr = getelementptr inbounds i8, i8* %4, i64 0, !dbg !91
283  %5 = bitcast i8* %vbptr to i32**, !dbg !91
284  %vbtable = load i32*, i32** %5, align 8, !dbg !91
285  %6 = getelementptr inbounds i32, i32* %vbtable, i32 1, !dbg !91
286  %vbase_offs = load i32, i32* %6, align 4, !dbg !91
287  %7 = sext i32 %vbase_offs to i64, !dbg !91
288  %8 = add nsw i64 0, %7, !dbg !91
289  %9 = bitcast %struct.D* %this1 to i8*, !dbg !91
290  %add.ptr = getelementptr inbounds i8, i8* %9, i64 %8, !dbg !91
291  %10 = bitcast i8* %add.ptr to i32 (...)***, !dbg !91
292  store i32 (...)** bitcast ([1 x i8*]* @"\01??_7D@@6B@" to i32 (...)**), i32 (...)*** %10, align 8, !dbg !91
293  %d = getelementptr inbounds %struct.D, %struct.D* %this1, i32 0, i32 1, !dbg !92
294  store i32 13, i32* %d, align 8, !dbg !92
295  %11 = load %struct.D*, %struct.D** %retval, align 8, !dbg !91
296  ret %struct.D* %11, !dbg !91
297}
298
299; Function Attrs: nounwind uwtable
300define linkonce_odr i32 @"\01?g@C@@UEAAHXZ"(i8*) unnamed_addr #3 comdat align 2 !dbg !93 {
301entry:
302  %this.addr = alloca %struct.C*, align 8
303  %1 = getelementptr inbounds i8, i8* %0, i32 -8
304  %this = bitcast i8* %1 to %struct.C*
305  store %struct.C* %this, %struct.C** %this.addr, align 8
306  call void @llvm.dbg.declare(metadata %struct.C** %this.addr, metadata !94, metadata !23), !dbg !95
307  %this1 = load %struct.C*, %struct.C** %this.addr, align 8
308  %c = getelementptr inbounds %struct.C, %struct.C* %this1, i32 0, i32 2, !dbg !96
309  %2 = load i32, i32* %c, align 8, !dbg !96
310  ret i32 %2, !dbg !97
311}
312
313declare i32 @"\01?f@A@@UEAAHXZ"(%struct.A*) unnamed_addr #4
314
315declare i32 @"\01?g@B@@UEAAHXZ"(%struct.B*) unnamed_addr #4
316
317; Function Attrs: nounwind uwtable
318define linkonce_odr i32 @"\01?g@D@@UEAAHXZ"(i8*) unnamed_addr #3 comdat align 2 !dbg !98 {
319entry:
320  %this.addr = alloca %struct.D*, align 8
321  %1 = getelementptr inbounds i8, i8* %0, i32 -16
322  %this = bitcast i8* %1 to %struct.D*
323  store %struct.D* %this, %struct.D** %this.addr, align 8
324  call void @llvm.dbg.declare(metadata %struct.D** %this.addr, metadata !99, metadata !23), !dbg !100
325  %this1 = load %struct.D*, %struct.D** %this.addr, align 8
326  %d = getelementptr inbounds %struct.D, %struct.D* %this1, i32 0, i32 1, !dbg !101
327  %2 = load i32, i32* %d, align 8, !dbg !101
328  ret i32 %2, !dbg !102
329}
330
331attributes #0 = { uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
332attributes #1 = { nounwind readnone }
333attributes #2 = { inlinehint nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
334attributes #3 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
335attributes #4 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
336attributes #5 = { nounwind }
337
338!llvm.dbg.cu = !{!0}
339!llvm.module.flags = !{!3, !4, !5}
340!llvm.ident = !{!6}
341
342!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.9.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
343!1 = !DIFile(filename: "t.cpp", directory: "D:\5Csrc\5Cllvm\5Cbuild")
344!2 = !{}
345!3 = !{i32 2, !"CodeView", i32 1}
346!4 = !{i32 2, !"Debug Info Version", i32 3}
347!5 = !{i32 1, !"PIC Level", i32 2}
348!6 = !{!"clang version 3.9.0 "}
349!7 = distinct !DISubprogram(name: "usetypes", linkageName: "\01?usetypes@@YAXXZ", scope: !1, file: !1, line: 15, type: !8, isLocal: false, isDefinition: true, scopeLine: 15, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
350!8 = !DISubroutineType(types: !9)
351!9 = !{null}
352!10 = !DILocalVariable(name: "a", scope: !7, file: !1, line: 16, type: !11)
353!11 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !1, line: 1, size: 64, align: 64, elements: !12, vtableHolder: !11, identifier: ".?AUA@@")
354!12 = !{!13, !19}
355!13 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$A", scope: !1, file: !1, baseType: !14, size: 64, flags: DIFlagArtificial)
356!14 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !15, size: 64)
357!15 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: !16, size: 64)
358!16 = !DISubroutineType(types: !17)
359!17 = !{!18}
360!18 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
361!19 = !DISubprogram(name: "f", linkageName: "\01?f@A@@UEAAHXZ", scope: !11, file: !1, line: 2, type: !20, isLocal: false, isDefinition: false, scopeLine: 2, containingType: !11, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: false)
362!20 = !DISubroutineType(types: !21)
363!21 = !{!18, !22}
364!22 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !11, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
365!23 = !DIExpression()
366!24 = !DILocation(line: 16, column: 5, scope: !7)
367!25 = !DILocalVariable(name: "b", scope: !7, file: !1, line: 17, type: !26)
368!26 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "B", file: !1, line: 4, size: 64, align: 64, elements: !27, vtableHolder: !26, identifier: ".?AUB@@")
369!27 = !{!28, !29}
370!28 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$B", scope: !1, file: !1, baseType: !14, size: 64, flags: DIFlagArtificial)
371!29 = !DISubprogram(name: "g", linkageName: "\01?g@B@@UEAAHXZ", scope: !26, file: !1, line: 5, type: !30, isLocal: false, isDefinition: false, scopeLine: 5, containingType: !26, virtuality: DW_VIRTUALITY_pure_virtual, virtualIndex: 0, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: false)
372!30 = !DISubroutineType(types: !31)
373!31 = !{!18, !32}
374!32 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !26, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
375!33 = !DILocation(line: 17, column: 5, scope: !7)
376!34 = !DILocalVariable(name: "c", scope: !7, file: !1, line: 18, type: !35)
377!35 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "C", file: !1, line: 7, size: 192, align: 64, elements: !36, vtableHolder: !11, identifier: ".?AUC@@")
378!36 = !{!37, !38, !39, !40}
379!37 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !35, baseType: !11)
380!38 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !35, baseType: !26, offset: 64)
381!39 = !DIDerivedType(tag: DW_TAG_member, name: "c", scope: !35, file: !1, line: 8, baseType: !18, size: 32, align: 32, offset: 128)
382!40 = !DISubprogram(name: "g", linkageName: "\01?g@C@@UEAAHXZ", scope: !35, file: !1, line: 9, type: !41, isLocal: false, isDefinition: false, scopeLine: 9, containingType: !35, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, thisAdjustment: 8, flags: DIFlagPrototyped, isOptimized: false)
383!41 = !DISubroutineType(types: !42)
384!42 = !{!18, !43}
385!43 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !35, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
386!44 = !DILocation(line: 18, column: 5, scope: !7)
387!45 = !DILocalVariable(name: "d", scope: !7, file: !1, line: 19, type: !46)
388!46 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "D", file: !1, line: 11, size: 192, align: 64, elements: !47, vtableHolder: !46, identifier: ".?AUD@@")
389!47 = !{!48, !49, !50, !51}
390!48 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !46, baseType: !26, offset: 4, flags: DIFlagVirtual)
391!49 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$D", scope: !1, file: !1, baseType: !14, size: 64, flags: DIFlagArtificial)
392!50 = !DIDerivedType(tag: DW_TAG_member, name: "d", scope: !46, file: !1, line: 12, baseType: !18, size: 32, align: 32, offset: 64)
393!51 = !DISubprogram(name: "g", linkageName: "\01?g@D@@UEAAHXZ", scope: !46, file: !1, line: 13, type: !52, isLocal: false, isDefinition: false, scopeLine: 13, containingType: !46, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, thisAdjustment: 16, flags: DIFlagPrototyped, isOptimized: false)
394!52 = !DISubroutineType(types: !53)
395!53 = !{!18, !54}
396!54 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !46, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
397!55 = !DILocation(line: 19, column: 5, scope: !7)
398!56 = !DILocation(line: 20, column: 5, scope: !7)
399!57 = !DILocation(line: 21, column: 1, scope: !7)
400!58 = distinct !DISubprogram(name: "A", linkageName: "\01??0A@@QEAA@XZ", scope: !11, file: !1, line: 1, type: !59, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !61, retainedNodes: !2)
401!59 = !DISubroutineType(types: !60)
402!60 = !{null, !22}
403!61 = !DISubprogram(name: "A", scope: !11, type: !59, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false)
404!62 = !DILocalVariable(name: "this", arg: 1, scope: !58, type: !63, flags: DIFlagArtificial | DIFlagObjectPointer)
405!63 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !11, size: 64, align: 64)
406!64 = !DILocation(line: 0, scope: !58)
407!65 = !DILocation(line: 1, column: 8, scope: !58)
408!66 = distinct !DISubprogram(name: "B", linkageName: "\01??0B@@QEAA@XZ", scope: !26, file: !1, line: 4, type: !67, isLocal: false, isDefinition: true, scopeLine: 4, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !69, retainedNodes: !2)
409!67 = !DISubroutineType(types: !68)
410!68 = !{null, !32}
411!69 = !DISubprogram(name: "B", scope: !26, type: !67, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false)
412!70 = !DILocalVariable(name: "this", arg: 1, scope: !66, type: !71, flags: DIFlagArtificial | DIFlagObjectPointer)
413!71 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !26, size: 64, align: 64)
414!72 = !DILocation(line: 0, scope: !66)
415!73 = !DILocation(line: 4, column: 8, scope: !66)
416!74 = distinct !DISubprogram(name: "C", linkageName: "\01??0C@@QEAA@XZ", scope: !35, file: !1, line: 7, type: !75, isLocal: false, isDefinition: true, scopeLine: 7, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !77, retainedNodes: !2)
417!75 = !DISubroutineType(types: !76)
418!76 = !{null, !43}
419!77 = !DISubprogram(name: "C", scope: !35, type: !75, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false)
420!78 = !DILocalVariable(name: "this", arg: 1, scope: !74, type: !79, flags: DIFlagArtificial | DIFlagObjectPointer)
421!79 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !35, size: 64, align: 64)
422!80 = !DILocation(line: 0, scope: !74)
423!81 = !DILocation(line: 7, column: 8, scope: !74)
424!82 = !DILocation(line: 8, column: 7, scope: !74)
425!83 = distinct !DISubprogram(name: "D", linkageName: "\01??0D@@QEAA@XZ", scope: !46, file: !1, line: 11, type: !84, isLocal: false, isDefinition: true, scopeLine: 11, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !86, retainedNodes: !2)
426!84 = !DISubroutineType(types: !85)
427!85 = !{null, !54}
428!86 = !DISubprogram(name: "D", scope: !46, type: !84, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false)
429!87 = !DILocalVariable(name: "is_most_derived", arg: 2, scope: !83, type: !18, flags: DIFlagArtificial)
430!88 = !DILocation(line: 0, scope: !83)
431!89 = !DILocalVariable(name: "this", arg: 1, scope: !83, type: !90, flags: DIFlagArtificial | DIFlagObjectPointer)
432!90 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !46, size: 64, align: 64)
433!91 = !DILocation(line: 11, column: 8, scope: !83)
434!92 = !DILocation(line: 12, column: 7, scope: !83)
435!93 = distinct !DISubprogram(name: "g", linkageName: "\01?g@C@@UEAAHXZ", scope: !35, file: !1, line: 9, type: !41, isLocal: false, isDefinition: true, scopeLine: 9, flags: DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !40, retainedNodes: !2)
436!94 = !DILocalVariable(name: "this", arg: 1, scope: !93, type: !79, flags: DIFlagArtificial | DIFlagObjectPointer)
437!95 = !DILocation(line: 0, scope: !93)
438!96 = !DILocation(line: 9, column: 28, scope: !93)
439!97 = !DILocation(line: 9, column: 21, scope: !93)
440!98 = distinct !DISubprogram(name: "g", linkageName: "\01?g@D@@UEAAHXZ", scope: !46, file: !1, line: 13, type: !52, isLocal: false, isDefinition: true, scopeLine: 13, flags: DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !51, retainedNodes: !2)
441!99 = !DILocalVariable(name: "this", arg: 1, scope: !98, type: !90, flags: DIFlagArtificial | DIFlagObjectPointer)
442!100 = !DILocation(line: 0, scope: !98)
443!101 = !DILocation(line: 13, column: 28, scope: !98)
444!102 = !DILocation(line: 13, column: 21, scope: !98)
445