[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:
Paul Robinson
2018-11-09 19:06:09 +00:00
parent 9ce4cce931
commit 80691e1b43
5 changed files with 52 additions and 39 deletions
+5 -4
View File
@@ -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;
}