summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2018-11-09 19:06:09 +0000
committerPaul Robinson <paul.robinson@sony.com>2018-11-09 19:06:09 +0000
commitddbde9a4add367c12b4ff8bda5e7a6b351b645c6 (patch)
tree29081d6179b75582c07b6cd5eb4e00fc3bd592a2 /llvm/lib/MC
parent731ea7dbc1da611beed2e492446df3408c85e638 (diff)
downloadbcm5719-llvm-ddbde9a4add367c12b4ff8bda5e7a6b351b645c6.tar.gz
bcm5719-llvm-ddbde9a4add367c12b4ff8bda5e7a6b351b645c6.zip
[DWARFv5] Emit normal type units in .debug_info comdats.
Differential Revision: https://reviews.llvm.org/D54282 llvm-svn: 346540
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index ab8e0f31db9..0513ba5a82a 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -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;
}
OpenPOWER on IntegriCloud