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