mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
[DWARF v5] Generate range list tables into the .debug_rnglists section. No support for split DWARF
and no use of DW_FORM_rnglistx with the DW_AT_ranges attribute. Reviewer: aprantl Differential Revision: https://reviews.llvm.org/D49214 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -267,6 +267,9 @@ void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) {
|
||||
DwarfRangesSection =
|
||||
Ctx->getMachOSection("__DWARF", "__debug_ranges", MachO::S_ATTR_DEBUG,
|
||||
SectionKind::getMetadata(), "debug_range");
|
||||
DwarfRnglistsSection =
|
||||
Ctx->getMachOSection("__DWARF", "__debug_rnglists", MachO::S_ATTR_DEBUG,
|
||||
SectionKind::getMetadata(), "debug_range");
|
||||
DwarfMacinfoSection =
|
||||
Ctx->getMachOSection("__DWARF", "__debug_macinfo", MachO::S_ATTR_DEBUG,
|
||||
SectionKind::getMetadata(), "debug_macinfo");
|
||||
@@ -578,6 +581,7 @@ void MCObjectFileInfo::initELFMCObjectFileInfo(const Triple &T, bool Large) {
|
||||
DwarfStrOffSection =
|
||||
Ctx->getELFSection(".debug_str_offsets", DebugSecType, 0);
|
||||
DwarfAddrSection = Ctx->getELFSection(".debug_addr", DebugSecType, 0);
|
||||
DwarfRnglistsSection = Ctx->getELFSection(".debug_rnglists", DebugSecType, 0);
|
||||
|
||||
// Fission Sections
|
||||
DwarfInfoDWOSection =
|
||||
@@ -595,6 +599,8 @@ void MCObjectFileInfo::initELFMCObjectFileInfo(const Triple &T, bool Large) {
|
||||
Ctx->getELFSection(".debug_loc.dwo", DebugSecType, 0);
|
||||
DwarfStrOffDWOSection =
|
||||
Ctx->getELFSection(".debug_str_offsets.dwo", DebugSecType, 0);
|
||||
DwarfRnglistsDWOSection =
|
||||
Ctx->getELFSection(".debug_rnglists.dwo", DebugSecType, 0);
|
||||
|
||||
// DWP Sections
|
||||
DwarfCUIndexSection =
|
||||
|
||||
Reference in New Issue
Block a user