diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-05-15 23:18:15 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-05-15 23:18:15 +0000 |
commit | bc094f387b4a8efa7e9c9e7666c5a2ff04988d85 (patch) | |
tree | 1ed9a33799f8b7723f34ebebf224e3e65616216e /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | 3224ebc88d6451a7d75601b003d9f2d4c74a20d2 (diff) | |
download | llvm-bc094f387b4a8efa7e9c9e7666c5a2ff04988d85.zip llvm-bc094f387b4a8efa7e9c9e7666c5a2ff04988d85.tar.gz llvm-bc094f387b4a8efa7e9c9e7666c5a2ff04988d85.tar.bz2 |
DebugInfo: Don't put fission type units in comdat sections.
Since type units in the dwo file are handled by a debug aware tool, they
don't need to leverage the ELF comdat grouping to implement
deduplication. Avoid creating all the .group sections for these as a
space optimization.
llvm-svn: 208930
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index 4b01200..45a0dd9 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -537,6 +537,9 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) { DwarfInfoDWOSection = Ctx->getELFSection(".debug_info.dwo", ELF::SHT_PROGBITS, 0, SectionKind::getMetadata()); + DwarfTypesDWOSection = + Ctx->getELFSection(".debug_types.dwo", ELF::SHT_PROGBITS, 0, + SectionKind::getMetadata()); DwarfAbbrevDWOSection = Ctx->getELFSection(".debug_abbrev.dwo", ELF::SHT_PROGBITS, 0, SectionKind::getMetadata()); @@ -807,13 +810,6 @@ const MCSection *MCObjectFileInfo::getDwarfTypesSection(uint64_t Hash) const { SectionKind::getMetadata(), 0, utostr(Hash)); } -const MCSection * -MCObjectFileInfo::getDwarfTypesDWOSection(uint64_t Hash) const { - return Ctx->getELFSection(".debug_types.dwo", ELF::SHT_PROGBITS, - ELF::SHF_GROUP, SectionKind::getMetadata(), 0, - utostr(Hash)); -} - void MCObjectFileInfo::InitEHFrameSection() { if (Env == IsMachO) EHFrameSection = |