llvm.org GIT mirror llvm / 086018d
[CodeView] Improve debugging of virtual base class member variables Initial support for passing the virtual base pointer offset to CodeViewDebug. https://reviews.llvm.org/D46271 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332296 91177308-0d34-0410-b5e6-96231b3b80d8 Brock Wyma 1 year, 5 months ago
5 changed file(s) with 174 addition(s) and 96 deletion(s). Raw diff Collapse all Expand all
244244 /// \param Ty Original type.
245245 /// \param BaseTy Base type. Ty is inherits from base.
246246 /// \param BaseOffset Base offset.
247 /// \param VBPtrOffset Virtual base pointer offset.
247248 /// \param Flags Flags to describe inheritance attribute,
248249 /// e.g. private
249250 DIDerivedType *createInheritance(DIType *Ty, DIType *BaseTy,
250 uint64_t BaseOffset,
251 uint64_t BaseOffset, uint32_t VBPtrOffset,
251252 DINode::DIFlags Flags);
252253
253254 /// Create debugging information entry for a member.
865865 /// Get extra data associated with this derived type.
866866 ///
867867 /// Class type for pointer-to-members, objective-c property node for ivars,
868 /// or global constant wrapper for static members.
868 /// global constant wrapper for static members, or virtual base pointer offset
869 /// for inheritance.
869870 ///
870871 /// TODO: Separate out types that need this extra operand: pointer-to-member
871872 /// types and member fields (static members and ivars).
881882
882883 DIObjCProperty *getObjCProperty() const {
883884 return dyn_cast_or_null(getExtraData());
885 }
886
887 uint32_t getVBPtrOffset() const {
888 assert(getTag() == dwarf::DW_TAG_inheritance);
889 if (auto *CM = cast_or_null(getExtraData()))
890 if (auto *CI = dyn_cast_or_null(CM->getValue()))
891 return static_cast(CI->getZExtValue());
892 return 0;
884893 }
885894
886895 Constant *getStorageOffsetInBits() const {
20982098 for (const DIDerivedType *I : Info.Inheritance) {
20992099 if (I->getFlags() & DINode::FlagVirtual) {
21002100 // Virtual base.
2101 // FIXME: Emit VBPtrOffset when the frontend provides it.
2102 unsigned VBPtrOffset = 0;
2101 unsigned VBPtrOffset = I->getVBPtrOffset();
21032102 // FIXME: Despite the accessor name, the offset is really in bytes.
21042103 unsigned VBTableIndex = I->getOffsetInBits() / 4;
21052104 auto RecordKind = (I->getFlags() & DINode::FlagIndirectVirtualBase) == DINode::FlagIndirectVirtualBase
317317
318318 DIDerivedType *DIBuilder::createInheritance(DIType *Ty, DIType *BaseTy,
319319 uint64_t BaseOffset,
320 uint32_t VBPtrOffset,
320321 DINode::DIFlags Flags) {
321322 assert(Ty && "Unable to create inheritance");
323 Metadata *ExtraData = ConstantAsMetadata::get(
324 ConstantInt::get(IntegerType::get(VMContext, 32), VBPtrOffset));
322325 return DIDerivedType::get(VMContext, dwarf::DW_TAG_inheritance, "", nullptr,
323 0, Ty, BaseTy, 0, 0, BaseOffset, None, Flags);
326 0, Ty, BaseTy, 0, 0, BaseOffset, None,
327 Flags, ExtraData);
324328 }
325329
326330 DIDerivedType *DIBuilder::createMemberType(DIScope *Scope, StringRef Name,
22 ; C++ source to regenerate:
33 ; $ cat t.cpp
44 ; struct A { int a; };
5 ; struct B : virtual A { int b; };
6 ; struct C : virtual A { int c; };
5 ; struct B : virtual A { int b; virtual int get() { return b; } };
6 ; struct C : virtual A { int c; virtual int get() { return c; } };
77 ; struct D : B, C {
88 ; virtual void f(); // make vbptr not offset zero
99 ; int d;
1111 ; D d;
1212 ; $ clang -fno-rtti -g -gcodeview t.cpp -emit-llvm -S -o t.ll -O1
1313
14 ; D's field list comes first.
15 ; CHECK: FieldList ({{.*}}) {
16 ; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)
17 ; CHECK-NEXT: BaseClass {
18 ; CHECK-NEXT: TypeLeafKind: LF_BCLASS (0x1400)
19 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
20 ; CHECK-NEXT: BaseType: B ({{.*}})
21 ; CHECK-NEXT: BaseOffset: 0x8
22 ; CHECK-NEXT: }
23 ; CHECK-NEXT: BaseClass {
24 ; CHECK-NEXT: TypeLeafKind: LF_BCLASS (0x1400)
25 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
26 ; CHECK-NEXT: BaseType: C ({{.*}})
27 ; CHECK-NEXT: BaseOffset: 0x18
28 ; CHECK-NEXT: }
29 ; CHECK-NEXT: IndirectVirtualBaseClass {
30 ; CHECK-NEXT: TypeLeafKind: LF_IVBCLASS (0x1402)
31 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
32 ; CHECK-NEXT: BaseType: A ({{.*}})
33 ; CHECK-NEXT: VBPtrType: const int* ({{.*}})
34 ; CHECK-NEXT: VBPtrOffset: 0x0
35 ; CHECK-NEXT: VBTableIndex: 0x1
36 ; CHECK-NEXT: }
37 ; CHECK: }
38
39 ; Then B's field list.
14 ; struct B's field list comes first.
4015 ; CHECK: FieldList ({{.*}}) {
4116 ; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)
4217 ; CHECK-NEXT: VirtualBaseClass {
4419 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
4520 ; CHECK-NEXT: BaseType: A ({{.*}})
4621 ; CHECK-NEXT: VBPtrType: const int* ({{.*}})
47 ; CHECK-NEXT: VBPtrOffset: 0x0
22 ; CHECK-NEXT: VBPtrOffset: 0x8
4823 ; CHECK-NEXT: VBTableIndex: 0x1
4924 ; CHECK-NEXT: }
5025 ; CHECK: }
5126
52 ; Then C's field list.
53 ; CHECK: FieldList ({{.*}}) {
54 ; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)
55 ; CHECK-NEXT: VirtualBaseClass {
56 ; CHECK-NEXT: TypeLeafKind: LF_VBCLASS (0x1401)
57 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
58 ; CHECK-NEXT: BaseType: A ({{.*}})
59 ; CHECK-NEXT: VBPtrType: const int* ({{.*}})
60 ; CHECK-NEXT: VBPtrOffset: 0x0
61 ; CHECK-NEXT: VBTableIndex: 0x1
62 ; CHECK-NEXT: }
63 ; CHECK: }
27 ; struct A's field list comes next.
28 ; CHECK: FieldList ({{.*}})
29 ; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)
30 ; CHECK: }
31
32 ; struct C's field list comes next.
33 ; CHECK: FieldList ({{.*}})
34 ; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)
35 ; CHECK-NEXT: VirtualBaseClass {
36 ; CHECK-NEXT: TypeLeafKind: LF_VBCLASS (0x1401)
37 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
38 ; CHECK-NEXT: BaseType: A ({{.*}})
39 ; CHECK-NEXT: VBPtrType: const int* ({{.*}})
40 ; CHECK-NEXT: VBPtrOffset: 0x8
41 ; CHECK-NEXT: VBTableIndex: 0x1
42 ; CHECK-NEXT: }
43 ; CHECK: }
44
45 ; struct D's field list is last.
46 ; CHECK: FieldList ({{.*}}) {
47 ; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)
48 ; CHECK-NEXT: BaseClass {
49 ; CHECK-NEXT: TypeLeafKind: LF_BCLASS (0x1400)
50 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
51 ; CHECK-NEXT: BaseType: B ({{.*}})
52 ; CHECK-NEXT: BaseOffset: 0x0
53 ; CHECK-NEXT: }
54 ; CHECK-NEXT: BaseClass {
55 ; CHECK-NEXT: TypeLeafKind: LF_BCLASS (0x1400)
56 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
57 ; CHECK-NEXT: BaseType: C ({{.*}})
58 ; CHECK-NEXT: BaseOffset: 0x18
59 ; CHECK-NEXT: }
60 ; CHECK-NEXT: IndirectVirtualBaseClass {
61 ; CHECK-NEXT: TypeLeafKind: LF_IVBCLASS (0x1402)
62 ; CHECK-NEXT: AccessSpecifier: Public (0x3)
63 ; CHECK-NEXT: BaseType: A ({{.*}})
64 ; CHECK-NEXT: VBPtrType: const int* ({{.*}})
65 ; CHECK-NEXT: VBPtrOffset: 0x8
66 ; CHECK-NEXT: VBTableIndex: 0x1
67 ; CHECK-NEXT: }
68 ; CHECK: }
6469
6570 ; ModuleID = 't.cpp'
6671 source_filename = "t.cpp"
6772 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
68 target triple = "x86_64-pc-windows-msvc19.0.23918"
73 target triple = "x86_64-pc-windows-msvc19.12.25835"
6974
70 %struct.D = type { i32 (...)**, %struct.B.base, %struct.C.base, i32, [4 x i8], %struct.A }
71 %struct.B.base = type { i32*, i32 }
72 %struct.C.base = type { i32*, i32 }
75 %struct.D = type { %struct.B.base, %struct.C.base, i32, [4 x i8], %struct.A }
76 %struct.B.base = type { i32 (...)**, i32*, i32 }
77 %struct.C.base = type { i32 (...)**, i32*, i32 }
7378 %struct.A = type { i32 }
79 %struct.B = type { i32 (...)**, i32*, i32, [4 x i8], %struct.A }
80 %struct.C = type { i32 (...)**, i32*, i32, [4 x i8], %struct.A }
7481
75 $"\01??_8D@@7BB@@@" = comdat any
82 $"?get@B@@UEAAHXZ" = comdat any
7683
77 $"\01??_8D@@7BC@@@" = comdat any
84 $"?get@C@@UEAAHXZ" = comdat any
7885
79 $"\01??_7D@@6B@" = comdat any
86 $"??_8D@@7BB@@@" = comdat any
8087
81 @"\01?d@@3UD@@A" = local_unnamed_addr global %struct.D { i32 (...)** bitcast ([1 x i8*]* @"\01??_7D@@6B@" to i32 (...)**), %struct.B.base { i32* getelementptr inbounds ([2 x i32], [2 x i32]* @"\01??_8D@@7BB@@@", i32 0, i32 0), i32 0 }, %struct.C.base { i32* getelementptr inbounds ([2 x i32], [2 x i32]* @"\01??_8D@@7BC@@@", i32 0, i32 0), i32 0 }, i32 0, [4 x i8] zeroinitializer, %struct.A zeroinitializer }, align 8, !dbg !0
82 @"\01??_8D@@7BB@@@" = linkonce_odr unnamed_addr constant [2 x i32] [i32 0, i32 40], comdat
83 @"\01??_8D@@7BC@@@" = linkonce_odr unnamed_addr constant [2 x i32] [i32 0, i32 24], comdat
84 @"\01??_7D@@6B@" = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast (void (%struct.D*)* @"\01?f@D@@UEAAXXZ" to i8*)], comdat
88 $"??_8D@@7BC@@@" = comdat any
89
90 $"??_7D@@6BB@@@" = comdat any
91
92 $"??_7D@@6BC@@@" = comdat any
93
94 @"?d@@3UD@@A" = dso_local local_unnamed_addr global %struct.D { %struct.B.base { i32 (...)** bitcast ({ [2 x i8*] }* @"??_7D@@6BB@@@" to i32 (...)**), i32* getelementptr inbounds ([2 x i32], [2 x i32]* @"??_8D@@7BB@@@", i32 0, i32 0), i32 0 }, %struct.C.base { i32 (...)** bitcast ({ [1 x i8*] }* @"??_7D@@6BC@@@" to i32 (...)**), i32* getelementptr inbounds ([2 x i32], [2 x i32]* @"??_8D@@7BC@@@", i32 0, i32 0), i32 0 }, i32 0, [4 x i8] zeroinitializer, %struct.A zeroinitializer }, align 8, !dbg !0
95 @"??_8D@@7BB@@@" = linkonce_odr unnamed_addr constant [2 x i32] [i32 -8, i32 48], comdat
96 @"??_8D@@7BC@@@" = linkonce_odr unnamed_addr constant [2 x i32] [i32 -8, i32 24], comdat
97 @"??_7D@@6BB@@@" = linkonce_odr unnamed_addr constant { [2 x i8*] } { [2 x i8*] [i8* bitcast (i32 (%struct.B*)* @"?get@B@@UEAAHXZ" to i8*), i8* bitcast (void (%struct.D*)* @"?f@D@@UEAAXXZ" to i8*)] }, comdat
98 @"??_7D@@6BC@@@" = linkonce_odr unnamed_addr constant { [1 x i8*] } { [1 x i8*] [i8* bitcast (i32 (%struct.C*)* @"?get@C@@UEAAHXZ" to i8*)] }, comdat
8599 @llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer
86100
87 declare void @"\01?f@D@@UEAAXXZ"(%struct.D*) unnamed_addr #0
101 ; Function Attrs: nounwind uwtable
102 define linkonce_odr dso_local i32 @"?get@B@@UEAAHXZ"(%struct.B* %this) unnamed_addr #0 comdat align 2 !dbg !46 {
103 entry:
104 call void @llvm.dbg.value(metadata %struct.B* %this, metadata !48, metadata !DIExpression()), !dbg !50
105 %b = getelementptr inbounds %struct.B, %struct.B* %this, i64 0, i32 2, !dbg !51
106 %0 = load i32, i32* %b, align 8, !dbg !51, !tbaa !52
107 ret i32 %0, !dbg !51
108 }
88109
89 attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-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" }
110 declare dso_local void @"?f@D@@UEAAXXZ"(%struct.D*) unnamed_addr #1
111
112 ; Function Attrs: nounwind uwtable
113 define linkonce_odr dso_local i32 @"?get@C@@UEAAHXZ"(%struct.C* %this) unnamed_addr #0 comdat align 2 !dbg !57 {
114 entry:
115 call void @llvm.dbg.value(metadata %struct.C* %this, metadata !59, metadata !DIExpression()), !dbg !61
116 %c = getelementptr inbounds %struct.C, %struct.C* %this, i64 0, i32 2, !dbg !62
117 %0 = load i32, i32* %c, align 8, !dbg !62, !tbaa !63
118 ret i32 %0, !dbg !62
119 }
120
121 ; Function Attrs: nounwind readnone speculatable
122 declare void @llvm.dbg.value(metadata, metadata, metadata) #2
123
124 attributes #0 = { nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "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" "no-signed-zeros-fp-math"="false" "no-trapping-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" }
125 attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-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" }
126 attributes #2 = { nounwind readnone speculatable }
90127
91128 !llvm.dbg.cu = !{!2}
92 !llvm.module.flags = !{!32, !33, !34}
93 !llvm.ident = !{!35}
129 !llvm.module.flags = !{!41, !42, !43, !44}
130 !llvm.ident = !{!45}
94131
95 !0 = distinct !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
96 !1 = !DIGlobalVariable(name: "d", linkageName: "\01?d@@3UD@@A", scope: !2, file: !6, line: 8, type: !7, isLocal: false, isDefinition: true)
97 !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 4.0.0 (http://llvm.org/git/clang.git 95626d54d6db7e13087089396a80ebaccc4ffe7c) (http://llvm.org/git/llvm.git 374b6e2fa0b230d13c0fb9ee7af69b2146bfad8a)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
98 !3 = !DIFile(filename: "t.cpp", directory: "D:\5Csrc\5Cllvm\5Cbuild")
132 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
133 !1 = distinct !DIGlobalVariable(name: "d", linkageName: "?d@@3UD@@A", scope: !2, file: !3, line: 8, type: !6, isLocal: false, isDefinition: true)
134 !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 7.0.0 (trunk)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
135 !3 = !DIFile(filename: "t.cpp", directory: "C:\5CPath\5CTo\5CDirectory", checksumkind: CSK_MD5, checksum: "7477d4db6bf8a461a719bcaab9c6d65e")
99136 !4 = !{}
100137 !5 = !{!0}
101 !6 = !DIFile(filename: "t.cpp", directory: "C:\5Cbuild\5Cllvm\5Cbuild")
102 !7 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "D", file: !6, line: 4, size: 448, elements: !8, vtableHolder: !7, identifier: ".?AUD@@")
103 !8 = !{!9, !18, !23, !24, !25, !27, !28}
104 !9 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !7, baseType: !10, offset: 64)
105 !10 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "B", file: !6, line: 2, size: 192, elements: !11, vtableHolder: !10, identifier: ".?AUB@@")
106 !11 = !{!12, !17}
107 !12 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !10, baseType: !13, offset: 4, flags: DIFlagVirtual)
108 !13 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !6, line: 1, size: 32, elements: !14, identifier: ".?AUA@@")
109 !14 = !{!15}
110 !15 = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: !13, file: !6, line: 1, baseType: !16, size: 32)
111 !16 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
112 !17 = !DIDerivedType(tag: DW_TAG_member, name: "b", scope: !10, file: !6, line: 2, baseType: !16, size: 32, offset: 64)
113 !18 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !7, baseType: !19, offset: 192)
114 !19 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "C", file: !6, line: 3, size: 192, elements: !20, vtableHolder: !19, identifier: ".?AUC@@")
115 !20 = !{!21, !22}
116 !21 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !19, baseType: !13, offset: 4, flags: DIFlagVirtual)
117 !22 = !DIDerivedType(tag: DW_TAG_member, name: "c", scope: !19, file: !6, line: 3, baseType: !16, size: 32, offset: 64)
118 !23 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !7, baseType: !13, offset: 4, flags: DIFlagIndirectVirtualBase)
119 !24 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: null, size: 64)
120 !25 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$D", scope: !6, file: !6, baseType: !26, size: 64, flags: DIFlagArtificial)
121 !26 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !24, size: 64)
122 !27 = !DIDerivedType(tag: DW_TAG_member, name: "d", scope: !7, file: !6, line: 6, baseType: !16, size: 32, offset: 320)
123 !28 = !DISubprogram(name: "f", linkageName: "\01?f@D@@UEAAXXZ", scope: !7, file: !6, line: 5, type: !29, isLocal: false, isDefinition: false, scopeLine: 5, containingType: !7, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: true)
124 !29 = !DISubroutineType(types: !30)
125 !30 = !{null, !31}
126 !31 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !7, size: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
127 !32 = !{i32 2, !"CodeView", i32 1}
128 !33 = !{i32 2, !"Debug Info Version", i32 3}
129 !34 = !{i32 1, !"PIC Level", i32 2}
130 !35 = !{!"clang version 4.0.0 (http://llvm.org/git/clang.git 95626d54d6db7e13087089396a80ebaccc4ffe7c) (http://llvm.org/git/llvm.git 374b6e2fa0b230d13c0fb9ee7af69b2146bfad8a)"}
131
138 !6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "D", file: !3, line: 4, size: 512, flags: DIFlagTypePassByReference, elements: !7, vtableHolder: !9, identifier: ".?AUD@@")
139 !7 = !{!8, !24, !34, !35, !36, !37}
140 !8 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !6, baseType: !9, extraData: i32 0)
141 !9 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "B", file: !3, line: 2, size: 256, flags: DIFlagTypePassByReference, elements: !10, vtableHolder: !9, identifier: ".?AUB@@")
142 !10 = !{!11, !16, !17, !19, !20}
143 !11 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !9, baseType: !12, offset: 4, flags: DIFlagVirtual, extraData: i32 8)
144 !12 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !3, line: 1, size: 32, flags: DIFlagTypePassByValue, elements: !13, identifier: ".?AUA@@")
145 !13 = !{!14}
146 !14 = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: !12, file: !3, line: 1, baseType: !15, size: 32)
147 !15 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
148 !16 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: null, size: 64)
149 !17 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$B", scope: !3, file: !3, baseType: !18, size: 64, flags: DIFlagArtificial)
150 !18 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !16, size: 64)
151 !19 = !DIDerivedType(tag: DW_TAG_member, name: "b", scope: !9, file: !3, line: 2, baseType: !15, size: 32, offset: 128)
152 !20 = !DISubprogram(name: "get", linkageName: "?get@B@@UEAAHXZ", scope: !9, file: !3, line: 2, type: !21, isLocal: false, isDefinition: false, scopeLine: 2, containingType: !9, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: true)
153 !21 = !DISubroutineType(types: !22)
154 !22 = !{!15, !23}
155 !23 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !9, size: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
156 !24 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !6, baseType: !25, offset: 192, extraData: i32 0)
157 !25 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "C", file: !3, line: 3, size: 256, flags: DIFlagTypePassByReference, elements: !26, vtableHolder: !25, identifier: ".?AUC@@")
158 !26 = !{!27, !16, !28, !29, !30}
159 !27 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !25, baseType: !12, offset: 4, flags: DIFlagVirtual, extraData: i32 8)
160 !28 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$C", scope: !3, file: !3, baseType: !18, size: 64, flags: DIFlagArtificial)
161 !29 = !DIDerivedType(tag: DW_TAG_member, name: "c", scope: !25, file: !3, line: 3, baseType: !15, size: 32, offset: 128)
162 !30 = !DISubprogram(name: "get", linkageName: "?get@C@@UEAAHXZ", scope: !25, file: !3, line: 3, type: !31, isLocal: false, isDefinition: false, scopeLine: 3, containingType: !25, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: true)
163 !31 = !DISubroutineType(types: !32)
164 !32 = !{!15, !33}
165 !33 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !25, size: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
166 !34 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !6, baseType: !12, offset: 4, flags: DIFlagIndirectVirtualBase, extraData: i32 8)
167 !35 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: null, size: 128)
168 !36 = !DIDerivedType(tag: DW_TAG_member, name: "d", scope: !6, file: !3, line: 6, baseType: !15, size: 32, offset: 384)
169 !37 = !DISubprogram(name: "f", linkageName: "?f@D@@UEAAXXZ", scope: !6, file: !3, line: 5, type: !38, isLocal: false, isDefinition: false, scopeLine: 5, containingType: !6, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 1, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: true)
170 !38 = !DISubroutineType(types: !39)
171 !39 = !{null, !40}
172 !40 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
173 !41 = !{i32 2, !"CodeView", i32 1}
174 !42 = !{i32 2, !"Debug Info Version", i32 3}
175 !43 = !{i32 1, !"wchar_size", i32 2}
176 !44 = !{i32 7, !"PIC Level", i32 2}
177 !45 = !{!"clang version 7.0.0 (trunk)"}
178 !46 = distinct !DISubprogram(name: "get", linkageName: "?get@B@@UEAAHXZ", scope: !9, file: !3, line: 2, type: !21, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, unit: !2, declaration: !20, retainedNodes: !47)
179 !47 = !{!48}
180 !48 = !DILocalVariable(name: "this", arg: 1, scope: !46, type: !49, flags: DIFlagArtificial | DIFlagObjectPointer)
181 !49 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !9, size: 64)
182 !50 = !DILocation(line: 0, scope: !46)
183 !51 = !DILocation(line: 2, scope: !46)
184 !52 = !{!53, !54, i64 16}
185 !53 = !{!"?AUB@@", !54, i64 16}
186 !54 = !{!"int", !55, i64 0}
187 !55 = !{!"omnipotent char", !56, i64 0}
188 !56 = !{!"Simple C++ TBAA"}
189 !57 = distinct !DISubprogram(name: "get", linkageName: "?get@C@@UEAAHXZ", scope: !25, file: !3, line: 3, type: !31, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: true, unit: !2, declaration: !30, retainedNodes: !58)
190 !58 = !{!59}
191 !59 = !DILocalVariable(name: "this", arg: 1, scope: !57, type: !60, flags: DIFlagArtificial | DIFlagObjectPointer)
192 !60 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !25, size: 64)
193 !61 = !DILocation(line: 0, scope: !57)
194 !62 = !DILocation(line: 3, scope: !57)
195 !63 = !{!64, !54, i64 16}
196 !64 = !{!"?AUC@@", !54, i64 16}