mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
[DWARFv5] Emit normal type units in .debug_info comdats.
Differential Revision: https://reviews.llvm.org/D54282 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -812,16 +812,17 @@ void MCObjectFileInfo::InitMCObjectFileInfo(const Triple &TheTriple, bool PIC,
|
||||
}
|
||||
}
|
||||
|
||||
MCSection *MCObjectFileInfo::getDwarfTypesSection(uint64_t Hash) const {
|
||||
MCSection *MCObjectFileInfo::getDwarfComdatSection(const char *Name,
|
||||
uint64_t Hash) const {
|
||||
switch (TT.getObjectFormat()) {
|
||||
case Triple::ELF:
|
||||
return Ctx->getELFSection(".debug_types", ELF::SHT_PROGBITS, ELF::SHF_GROUP,
|
||||
0, utostr(Hash));
|
||||
return Ctx->getELFSection(Name, ELF::SHT_PROGBITS, ELF::SHF_GROUP, 0,
|
||||
utostr(Hash));
|
||||
case Triple::MachO:
|
||||
case Triple::COFF:
|
||||
case Triple::Wasm:
|
||||
case Triple::UnknownObjectFormat:
|
||||
report_fatal_error("Cannot get DWARF types section for this object file "
|
||||
report_fatal_error("Cannot get DWARF comdat section for this object file "
|
||||
"format: not implemented.");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user