llvm.org GIT mirror llvm / 500b851
[Codegen] - Implement basic .debug_loclists section emission (DWARF5). .debug_loclists is the DWARF 5 version of the .debug_loc. With that patch, it will be emitted when DWARF 5 is used. Differential revision: https://reviews.llvm.org/D53365 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345377 91177308-0d34-0410-b5e6-96231b3b80d8 George Rimar 1 year, 5 months ago
7 changed file(s) with 303 addition(s) and 54 deletion(s). Raw diff Collapse all Expand all
116116 MCSection *DwarfAddrSection;
117117 /// The DWARF v5 range list section.
118118 MCSection *DwarfRnglistsSection;
119 /// The DWARF v5 locations list section.
120 MCSection *DwarfLoclistsSection;
119121
120122 /// The DWARF v5 range list section for fission.
121123 MCSection *DwarfRnglistsDWOSection;
257259 MCSection *getDwarfARangesSection() const { return DwarfARangesSection; }
258260 MCSection *getDwarfRangesSection() const { return DwarfRangesSection; }
259261 MCSection *getDwarfRnglistsSection() const { return DwarfRnglistsSection; }
262 MCSection *getDwarfLoclistsSection() const { return DwarfLoclistsSection; }
260263 MCSection *getDwarfMacinfoSection() const { return DwarfMacinfoSection; }
261264
262265 MCSection *getDwarfDebugNamesSection() const {
726726 (useSplitDwarf() ? SkeletonHolder : InfoHolder)
727727 .setStringOffsetsStartSym(Asm->createTempSymbol("str_offsets_base"));
728728
729 // Create the symbol that designates the start of the DWARF v5 range list
730 // table. It is located past the header and before the offsets table.
729
730 // Create the symbols that designates the start of the DWARF v5 range list
731 // and locations list tables. They are located past the table headers.
731732 if (getDwarfVersion() >= 5) {
732 (useSplitDwarf() ? SkeletonHolder : InfoHolder)
733 .setRnglistsTableBaseSym(Asm->createTempSymbol("rnglists_table_base"));
733 DwarfFile &Holder = useSplitDwarf() ? SkeletonHolder : InfoHolder;
734 Holder.setRnglistsTableBaseSym(
735 Asm->createTempSymbol("rnglists_table_base"));
736 Holder.setLoclistsTableBaseSym(
737 Asm->createTempSymbol("loclists_table_base"));
738
734739 if (useSplitDwarf())
735740 InfoHolder.setRnglistsTableBaseSym(
736741 Asm->createTempSymbol("rnglists_dwo_table_base"));
888893 U.attachRangesOrLowHighPC(U.getUnitDie(), TheCU.takeRanges());
889894 }
890895
891 if (getDwarfVersion() >= 5 && U.hasRangeLists())
892 U.addRnglistsBase();
896 if (getDwarfVersion() >= 5) {
897 if (U.hasRangeLists())
898 U.addRnglistsBase();
899
900 if (!DebugLocs.getLists().empty() && !useSplitDwarf())
901 U.addLoclistsBase();
902 }
893903
894904 auto *CUNode = cast(P.first);
895905 // If compile Unit has macros, emit "DW_AT_macro_info" attribute.
19241934 emitDebugLocEntry(Streamer, Entry);
19251935 }
19261936
1927 // Emit locations into the debug loc section.
1937 // Emit the common part of the DWARF 5 range/locations list tables header.
1938 static void emitListsTableHeaderStart(AsmPrinter *Asm, const DwarfFile &Holder,
1939 MCSymbol *TableStart,
1940 MCSymbol *TableEnd) {
1941 // Build the table header, which starts with the length field.
1942 Asm->OutStreamer->AddComment("Length");
1943 Asm->EmitLabelDifference(TableEnd, TableStart, 4);
1944 Asm->OutStreamer->EmitLabel(TableStart);
1945 // Version number (DWARF v5 and later).
1946 Asm->OutStreamer->AddComment("Version");
1947 Asm->emitInt16(Asm->OutStreamer->getContext().getDwarfVersion());
1948 // Address size.
1949 Asm->OutStreamer->AddComment("Address size");
1950 Asm->emitInt8(Asm->MAI->getCodePointerSize());
1951 // Segment selector size.
1952 Asm->OutStreamer->AddComment("Segment selector size");
1953 Asm->emitInt8(0);
1954 }
1955
1956 // Emit the header of a DWARF 5 range list table list table. Returns the symbol
1957 // that designates the end of the table for the caller to emit when the table is
1958 // complete.
1959 static MCSymbol *emitRnglistsTableHeader(AsmPrinter *Asm,
1960 const DwarfFile &Holder) {
1961 MCSymbol *TableStart = Asm->createTempSymbol("debug_rnglist_table_start");
1962 MCSymbol *TableEnd = Asm->createTempSymbol("debug_rnglist_table_end");
1963 emitListsTableHeaderStart(Asm, Holder, TableStart, TableEnd);
1964
1965 Asm->OutStreamer->AddComment("Offset entry count");
1966 Asm->emitInt32(Holder.getRangeLists().size());
1967 Asm->OutStreamer->EmitLabel(Holder.getRnglistsTableBaseSym());
1968
1969 for (const RangeSpanList &List : Holder.getRangeLists())
1970 Asm->EmitLabelDifference(List.getSym(), Holder.getRnglistsTableBaseSym(),
1971 4);
1972
1973 return TableEnd;
1974 }
1975
1976 // Emit the header of a DWARF 5 locations list table. Returns the symbol that
1977 // designates the end of the table for the caller to emit when the table is
1978 // complete.
1979 static MCSymbol *emitLoclistsTableHeader(AsmPrinter *Asm,
1980 const DwarfFile &Holder) {
1981 MCSymbol *TableStart = Asm->createTempSymbol("debug_loclist_table_start");
1982 MCSymbol *TableEnd = Asm->createTempSymbol("debug_loclist_table_end");
1983 emitListsTableHeaderStart(Asm, Holder, TableStart, TableEnd);
1984
1985 // FIXME: Generate the offsets table and use DW_FORM_loclistx with the
1986 // DW_AT_loclists_base attribute. Until then set the number of offsets to 0.
1987 Asm->OutStreamer->AddComment("Offset entry count");
1988 Asm->emitInt32(0);
1989 Asm->OutStreamer->EmitLabel(Holder.getLoclistsTableBaseSym());
1990
1991 return TableEnd;
1992 }
1993
1994 // Emit locations into the .debug_loc/.debug_rnglists section.
19281995 void DwarfDebug::emitDebugLoc() {
19291996 if (DebugLocs.getLists().empty())
19301997 return;
19311998
1932 // Start the dwarf loc section.
1933 Asm->OutStreamer->SwitchSection(
1934 Asm->getObjFileLowering().getDwarfLocSection());
1999 bool IsLocLists = getDwarfVersion() >= 5;
2000 MCSymbol *TableEnd = nullptr;
2001 if (IsLocLists) {
2002 Asm->OutStreamer->SwitchSection(
2003 Asm->getObjFileLowering().getDwarfLoclistsSection());
2004 TableEnd = emitLoclistsTableHeader(Asm, useSplitDwarf() ? SkeletonHolder
2005 : InfoHolder);
2006 } else {
2007 Asm->OutStreamer->SwitchSection(
2008 Asm->getObjFileLowering().getDwarfLocSection());
2009 }
2010
19352011 unsigned char Size = Asm->MAI->getCodePointerSize();
19362012 for (const auto &List : DebugLocs.getLists()) {
19372013 Asm->OutStreamer->EmitLabel(List.Label);
2014
19382015 const DwarfCompileUnit *CU = List.CU;
2016 const MCSymbol *Base = CU->getBaseAddress();
19392017 for (const auto &Entry : DebugLocs.getEntries(List)) {
1940 // Set up the range. This range is relative to the entry point of the
1941 // compile unit. This is a hard coded 0 for low_pc when we're emitting
1942 // ranges, or the DW_AT_low_pc on the compile unit otherwise.
1943 if (auto *Base = CU->getBaseAddress()) {
1944 Asm->EmitLabelDifference(Entry.BeginSym, Base, Size);
1945 Asm->EmitLabelDifference(Entry.EndSym, Base, Size);
2018 if (Base) {
2019 // Set up the range. This range is relative to the entry point of the
2020 // compile unit. This is a hard coded 0 for low_pc when we're emitting
2021 // ranges, or the DW_AT_low_pc on the compile unit otherwise.
2022 if (IsLocLists) {
2023 Asm->OutStreamer->AddComment("DW_LLE_offset_pair");
2024 Asm->OutStreamer->EmitIntValue(dwarf::DW_LLE_offset_pair, 1);
2025 Asm->OutStreamer->AddComment(" starting offset");
2026 Asm->EmitLabelDifferenceAsULEB128(Entry.BeginSym, Base);
2027 Asm->OutStreamer->AddComment(" ending offset");
2028 Asm->EmitLabelDifferenceAsULEB128(Entry.EndSym, Base);
2029 } else {
2030 Asm->EmitLabelDifference(Entry.BeginSym, Base, Size);
2031 Asm->EmitLabelDifference(Entry.EndSym, Base, Size);
2032 }
2033
2034 emitDebugLocEntryLocation(Entry);
2035 continue;
2036 }
2037
2038 // We have no base address.
2039 if (IsLocLists) {
2040 // TODO: Use DW_LLE_base_addressx + DW_LLE_offset_pair, or
2041 // DW_LLE_startx_length in case if there is only a single range.
2042 // That should reduce the size of the debug data emited.
2043 // For now just use the DW_LLE_startx_length for all cases.
2044 Asm->OutStreamer->AddComment("DW_LLE_startx_length");
2045 Asm->emitInt8(dwarf::DW_LLE_startx_length);
2046 Asm->OutStreamer->AddComment(" start idx");
2047 Asm->EmitULEB128(AddrPool.getIndex(Entry.BeginSym));
2048 Asm->OutStreamer->AddComment(" length");
2049 Asm->EmitLabelDifferenceAsULEB128(Entry.EndSym, Entry.BeginSym);
19462050 } else {
19472051 Asm->OutStreamer->EmitSymbolValue(Entry.BeginSym, Size);
19482052 Asm->OutStreamer->EmitSymbolValue(Entry.EndSym, Size);
19502054
19512055 emitDebugLocEntryLocation(Entry);
19522056 }
1953 Asm->OutStreamer->EmitIntValue(0, Size);
1954 Asm->OutStreamer->EmitIntValue(0, Size);
1955 }
2057
2058 if (IsLocLists) {
2059 // .debug_loclists section ends with DW_LLE_end_of_list.
2060 Asm->OutStreamer->AddComment("DW_LLE_end_of_list");
2061 Asm->OutStreamer->EmitIntValue(dwarf::DW_LLE_end_of_list, 1);
2062 } else {
2063 // Terminate the .debug_loc list with two 0 values.
2064 Asm->OutStreamer->EmitIntValue(0, Size);
2065 Asm->OutStreamer->EmitIntValue(0, Size);
2066 }
2067 }
2068
2069 if (TableEnd)
2070 Asm->OutStreamer->EmitLabel(TableEnd);
19562071 }
19572072
19582073 void DwarfDebug::emitDebugLocDWO() {
22312346 }
22322347 }
22332348
2234 // Emit the header of a DWARF 5 range list table. Returns the symbol that
2235 // designates the end of the table for the caller to emit when the table is
2236 // complete.
2237 static MCSymbol *emitRnglistsTableHeader(AsmPrinter *Asm,
2238 const DwarfFile &Holder) {
2239 // The length is described by a starting label right after the length field
2240 // and an end label.
2241 MCSymbol *TableStart = Asm->createTempSymbol("debug_rnglist_table_start");
2242 MCSymbol *TableEnd = Asm->createTempSymbol("debug_rnglist_table_end");
2243 // Build the range table header, which starts with the length field.
2244 Asm->OutStreamer->AddComment("Length");
2245 Asm->EmitLabelDifference(TableEnd, TableStart, 4);
2246 Asm->OutStreamer->EmitLabel(TableStart);
2247 // Version number (DWARF v5 and later).
2248 Asm->OutStreamer->AddComment("Version");
2249 Asm->emitInt16(Asm->OutStreamer->getContext().getDwarfVersion());
2250 Asm->OutStreamer->AddComment("Address size");
2251 Asm->emitInt8(Asm->MAI->getCodePointerSize());
2252 Asm->OutStreamer->AddComment("Segment selector size");
2253 Asm->emitInt8(0);
2254
2255 MCSymbol *RnglistsTableBaseSym = Holder.getRnglistsTableBaseSym();
2256
2257 // FIXME: Generate the offsets table and use DW_FORM_rnglistx with the
2258 // DW_AT_ranges attribute. Until then set the number of offsets to 0.
2259 Asm->OutStreamer->AddComment("Offset entry count");
2260 Asm->emitInt32(Holder.getRangeLists().size());
2261 Asm->OutStreamer->EmitLabel(RnglistsTableBaseSym);
2262 for (const RangeSpanList &List : Holder.getRangeLists())
2263 Asm->EmitLabelDifference(List.getSym(), RnglistsTableBaseSym, 4);
2264 return TableEnd;
2265 }
2266
22672349 void emitDebugRangesImpl(DwarfDebug &DD, AsmPrinter *Asm,
22682350 const DwarfFile &Holder, MCSymbol *TableEnd) {
22692351 for (const RangeSpanList &List : Holder.getRangeLists())
8888 /// The table is shared by all units.
8989 MCSymbol *RnglistsTableBaseSym = nullptr;
9090
91 /// DWARF v5: The symbol that designates the base of the locations list table.
92 /// The table is shared by all units.
93 MCSymbol *LoclistsTableBaseSym = nullptr;
94
9195 /// The variables of a lexical scope.
9296 struct ScopeVars {
9397 /// We need to sort Args by ArgNo and check for duplicates. This could also
160164 DwarfStringPool &getStringPool() { return StrPool; }
161165
162166 MCSymbol *getStringOffsetsStartSym() const { return StringOffsetsStartSym; }
163
164167 void setStringOffsetsStartSym(MCSymbol *Sym) { StringOffsetsStartSym = Sym; }
165168
166169 MCSymbol *getRnglistsTableBaseSym() const { return RnglistsTableBaseSym; }
167
168170 void setRnglistsTableBaseSym(MCSymbol *Sym) { RnglistsTableBaseSym = Sym; }
171
172 MCSymbol *getLoclistsTableBaseSym() const { return LoclistsTableBaseSym; }
173 void setLoclistsTableBaseSym(MCSymbol *Sym) { LoclistsTableBaseSym = Sym; }
169174
170175 /// \returns false if the variable was merged with a previous one.
171176 bool addScopeVariable(LexicalScope *LS, DbgVariable *Var);
16551655 TLOF.getDwarfRnglistsSection()->getBeginSymbol());
16561656 }
16571657
1658 void DwarfUnit::addLoclistsBase() {
1659 assert(DD->getDwarfVersion() >= 5 &&
1660 "DW_AT_loclists_base requires DWARF version 5 or later");
1661 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
1662 addSectionLabel(getUnitDie(), dwarf::DW_AT_loclists_base,
1663 DU->getLoclistsTableBaseSym(),
1664 TLOF.getDwarfLoclistsSection()->getBeginSymbol());
1665 }
1666
16581667 void DwarfUnit::addAddrTableBase() {
16591668 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
16601669 MCSymbol *Label = DD->getAddressPool().getLabel();
270270
271271 /// Add the DW_AT_rnglists_base attribute to the unit DIE.
272272 void addRnglistsBase();
273
274 /// Add the DW_AT_loclists_base attribute to the unit DIE.
275 void addLoclistsBase();
273276
274277 /// Add the DW_AT_addr_base attribute to the unit DIE.
275278 void addAddrTableBase();
259259 DwarfLocSection =
260260 Ctx->getMachOSection("__DWARF", "__debug_loc", MachO::S_ATTR_DEBUG,
261261 SectionKind::getMetadata(), "section_debug_loc");
262 DwarfLoclistsSection =
263 Ctx->getMachOSection("__DWARF", "__debug_loclists", MachO::S_ATTR_DEBUG,
264 SectionKind::getMetadata(), "section_debug_loc");
265
262266 DwarfARangesSection =
263267 Ctx->getMachOSection("__DWARF", "__debug_aranges", MachO::S_ATTR_DEBUG,
264268 SectionKind::getMetadata());
434438 Ctx->getELFSection(".debug_str_offsets", DebugSecType, 0);
435439 DwarfAddrSection = Ctx->getELFSection(".debug_addr", DebugSecType, 0);
436440 DwarfRnglistsSection = Ctx->getELFSection(".debug_rnglists", DebugSecType, 0);
441 DwarfLoclistsSection = Ctx->getELFSection(".debug_loclists", DebugSecType, 0);
437442
438443 // Fission Sections
439444 DwarfInfoDWOSection =
0 ; RUN: llc -mtriple=x86_64-pc-linux -filetype=obj -o %t < %s
1 ; RUN: llvm-dwarfdump -v %t | FileCheck %s
2
3 ; CHECK: 0x00000033: DW_TAG_formal_parameter [3]
4 ; CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x0000000c
5 ; CHECK-NEXT: [0x0000000000000000, 0x0000000000000004): DW_OP_breg5 RDI+0
6 ; CHECK-NEXT: [0x0000000000000004, 0x0000000000000012): DW_OP_breg3 RBX+0)
7 ; CHECK-NEXT: DW_AT_name [DW_FORM_strx1] ( indexed (0000000e) string = "a")
8 ; CHECK-NEXT: DW_AT_decl_file [DW_FORM_data1] ("/home/folder{{\\|\/}}test.cc")
9 ; CHECK-NEXT: DW_AT_decl_line [DW_FORM_data1] (6)
10 ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + 0x0040 => {0x00000040} "A")
11
12 ; CHECK: .debug_loclists contents:
13 ; CHECK-NEXT: 0x00000000: locations list header: length = 0x00000017, version = 0x0005, addr_size = 0x08, seg_size = 0x00, offset_entry_count = 0x00000000
14 ; CHECK-NEXT: 0x00000000:
15 ; CHECK-NEXT: [0x0000000000000000, 0x0000000000000004): DW_OP_breg5 RDI+0
16 ; CHECK-NEXT: [0x0000000000000004, 0x0000000000000012): DW_OP_breg3 RBX+0
17
18 ; There is no way to use llvm-dwarfdump atm (2018, october) to verify the DW_LLE_* codes emited,
19 ; because dumper is not yet implements that. Use asm code to do this check instead.
20 ;
21 ; RUN: llc -mtriple=x86_64-pc-linux -filetype=asm < %s -o - | FileCheck %s --check-prefix=ASM
22 ; ASM: .section .debug_loclists,"",@progbits
23 ; ASM-NEXT: .long .Ldebug_loclist_table_end0-.Ldebug_loclist_table_start0 # Length
24 ; ASM-NEXT: .Ldebug_loclist_table_start0:
25 ; ASM-NEXT: .short 5 # Version
26 ; ASM-NEXT: .byte 8 # Address size
27 ; ASM-NEXT: .byte 0 # Segment selector size
28 ; ASM-NEXT: .long 0 # Offset entry count
29 ; ASM-NEXT: .Lloclists_table_base0:
30 ; ASM-NEXT: .Ldebug_loc0:
31 ; ASM-NEXT: .byte 4 # DW_LLE_offset_pair
32 ; ASM-NEXT: .uleb128 .Lfunc_begin0-.Lfunc_begin0 # starting offset
33 ; ASM-NEXT: .uleb128 .Ltmp0-.Lfunc_begin0 # ending offset
34 ; ASM-NEXT: .short 2 # Loc expr size
35 ; ASM-NEXT: .byte 117 # DW_OP_breg5
36 ; ASM-NEXT: .byte 0 # 0
37 ; ASM-NEXT: .byte 4 # DW_LLE_offset_pair
38 ; ASM-NEXT: .uleb128 .Ltmp0-.Lfunc_begin0 # starting offset
39 ; ASM-NEXT: .uleb128 .Ltmp1-.Lfunc_begin0 # ending offset
40 ; ASM-NEXT: .short 2 # Loc expr size
41 ; ASM-NEXT: .byte 115 # DW_OP_breg3
42 ; ASM-NEXT: .byte 0 # 0
43 ; ASM-NEXT: .byte 0 # DW_LLE_end_of_list
44 ; ASM-NEXT: .Ldebug_loclist_table_end0:
45
46 ; ModuleID = 'test.cc'
47 source_filename = "test.cc"
48 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
49 target triple = "x86_64-unknown-linux-gnu"
50
51 %struct.A = type { i32 (...)** }
52
53 @_ZTV1A = dso_local unnamed_addr constant { [4 x i8*] } { [4 x i8*] [i8* null, i8* bitcast ({ i8*, i8* }* @_ZTI1A to i8*), i8* bitcast (void (%struct.A*)* @_ZN1A3fooEv to i8*), i8* bitcast (void (%struct.A*)* @_ZN1A3barEv to i8*)] }, align 8
54 @_ZTVN10__cxxabiv117__class_type_infoE = external dso_local global i8*
55 @_ZTS1A = dso_local constant [3 x i8] c"1A\00", align 1
56 @_ZTI1A = dso_local 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) }, align 8
57
58 ; Function Attrs: noinline optnone uwtable
59 define dso_local void @_Z3baz1A(%struct.A* %a) #0 !dbg !7 {
60 entry:
61 call void @llvm.dbg.declare(metadata %struct.A* %a, metadata !23, metadata !DIExpression()), !dbg !24
62 call void @_ZN1A3fooEv(%struct.A* %a), !dbg !25
63 call void @_ZN1A3barEv(%struct.A* %a), !dbg !26
64 ret void, !dbg !27
65 }
66
67 ; Function Attrs: nounwind readnone speculatable
68 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
69
70 ; Function Attrs: noinline nounwind optnone uwtable
71 define dso_local void @_ZN1A3fooEv(%struct.A* %this) unnamed_addr #2 align 2 !dbg !28 {
72 entry:
73 %this.addr = alloca %struct.A*, align 8
74 store %struct.A* %this, %struct.A** %this.addr, align 8
75 call void @llvm.dbg.declare(metadata %struct.A** %this.addr, metadata !29, metadata !DIExpression()), !dbg !31
76 %this1 = load %struct.A*, %struct.A** %this.addr, align 8
77 ret void, !dbg !32
78 }
79
80 ; Function Attrs: noinline nounwind optnone uwtable
81 define dso_local void @_ZN1A3barEv(%struct.A* %this) unnamed_addr #2 align 2 !dbg !33 {
82 entry:
83 %this.addr = alloca %struct.A*, align 8
84 store %struct.A* %this, %struct.A** %this.addr, align 8
85 call void @llvm.dbg.declare(metadata %struct.A** %this.addr, metadata !34, metadata !DIExpression()), !dbg !35
86 %this1 = load %struct.A*, %struct.A** %this.addr, align 8
87 ret void, !dbg !36
88 }
89
90 ; Function Attrs: noinline norecurse nounwind optnone uwtable
91 define dso_local i32 @main() #3 !dbg !37 {
92 entry:
93 %retval = alloca i32, align 4
94 store i32 0, i32* %retval, align 4
95 ret i32 0, !dbg !38
96 }
97
98
99 !llvm.dbg.cu = !{!0}
100 !llvm.module.flags = !{!3, !4, !5}
101 !llvm.ident = !{!6}
102
103 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 8.0.0 (trunk 344035)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
104 !1 = !DIFile(filename: "test.cc", directory: "/home/folder", checksumkind: CSK_MD5, checksum: "e0f357ad6dcb791a774a0dae55baf5e7")
105 !2 = !{}
106 !3 = !{i32 2, !"Dwarf Version", i32 5}
107 !4 = !{i32 2, !"Debug Info Version", i32 3}
108 !5 = !{i32 1, !"wchar_size", i32 4}
109 !6 = !{!"clang version 8.0.0 (trunk 344035)"}
110 !7 = distinct !DISubprogram(name: "baz", linkageName: "_Z3baz1A", scope: !1, file: !1, line: 6, type: !8, isLocal: false, isDefinition: true, scopeLine: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
111 !8 = !DISubroutineType(types: !9)
112 !9 = !{null, !10}
113 !10 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !1, line: 1, size: 64, flags: DIFlagTypePassByReference, elements: !11, vtableHolder: !10, identifier: "_ZTS1A")
114 !11 = !{!12, !18, !22}
115 !12 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$A", scope: !1, file: !1, baseType: !13, size: 64, flags: DIFlagArtificial)
116 !13 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !14, size: 64)
117 !14 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: !15, size: 64)
118 !15 = !DISubroutineType(types: !16)
119 !16 = !{!17}
120 !17 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
121 !18 = !DISubprogram(name: "foo", linkageName: "_ZN1A3fooEv", scope: !10, file: !1, line: 2, type: !19, isLocal: false, isDefinition: false, scopeLine: 2, containingType: !10, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped, isOptimized: false)
122 !19 = !DISubroutineType(types: !20)
123 !20 = !{null, !21}
124 !21 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
125 !22 = !DISubprogram(name: "bar", linkageName: "_ZN1A3barEv", scope: !10, file: !1, line: 3, type: !19, isLocal: false, isDefinition: false, scopeLine: 3, containingType: !10, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 1, flags: DIFlagPrototyped, isOptimized: false)
126 !23 = !DILocalVariable(name: "a", arg: 1, scope: !7, file: !1, line: 6, type: !10)
127 !24 = !DILocation(line: 6, column: 19, scope: !7)
128 !25 = !DILocation(line: 7, column: 6, scope: !7)
129 !26 = !DILocation(line: 8, column: 6, scope: !7)
130 !27 = !DILocation(line: 9, column: 1, scope: !7)
131 !28 = distinct !DISubprogram(name: "foo", linkageName: "_ZN1A3fooEv", scope: !10, file: !1, line: 12, type: !19, isLocal: false, isDefinition: true, scopeLine: 12, flags: DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !18, retainedNodes: !2)
132 !29 = !DILocalVariable(name: "this", arg: 1, scope: !28, type: !30, flags: DIFlagArtificial | DIFlagObjectPointer)
133 !30 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64)
134 !31 = !DILocation(line: 0, scope: !28)
135 !32 = !DILocation(line: 12, column: 16, scope: !28)
136 !33 = distinct !DISubprogram(name: "bar", linkageName: "_ZN1A3barEv", scope: !10, file: !1, line: 13, type: !19, isLocal: false, isDefinition: true, scopeLine: 13, flags: DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !22, retainedNodes: !2)
137 !34 = !DILocalVariable(name: "this", arg: 1, scope: !33, type: !30, flags: DIFlagArtificial | DIFlagObjectPointer)
138 !35 = !DILocation(line: 0, scope: !33)
139 !36 = !DILocation(line: 13, column: 16, scope: !33)
140 !37 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 15, type: !15, isLocal: false, isDefinition: true, scopeLine: 15, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
141 !38 = !DILocation(line: 16, column: 3, scope: !37)