aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2020-12-04 13:45:42 -0800
committerDerek Schuff <dschuff@chromium.org>2020-12-07 12:12:44 -0800
commit0a391060f16dc3e10bcb0b02036073021c414006 (patch)
treee614e3665e5cda86cc772eaebc2cd5183a31584a /llvm/lib/MC/MCObjectFileInfo.cpp
parent5fe1a49f961d7e6a064addf6373288d5e3697e68 (diff)
downloadllvm-0a391060f16dc3e10bcb0b02036073021c414006.zip
llvm-0a391060f16dc3e10bcb0b02036073021c414006.tar.gz
llvm-0a391060f16dc3e10bcb0b02036073021c414006.tar.bz2
[WebAssembly] Add Object and ObjectWriter support for wasm COMDAT sections
Allow sections to be placed into COMDAT groups, in addtion to functions and data segments. Also make section symbols unnamed, which allows sections with identical names (section names are independent of their section symbols, but previously we gave the symbols the same name as their sections, which results in collisions when sections are identically-named). Differential Revision: https://reviews.llvm.org/D92691
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index a67e4b33..af1d7c0 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -974,9 +974,6 @@ MCSection *MCObjectFileInfo::getDwarfComdatSection(const char *Name,
return Ctx->getELFSection(Name, ELF::SHT_PROGBITS, ELF::SHF_GROUP, 0,
utostr(Hash));
case Triple::Wasm:
- // FIXME: When using dwarf 5, the .debug_info section is used for type units
- // but that section already exists, so attempting to get it as a comdate
- // section triggers an assert.
return Ctx->getWasmSection(Name, SectionKind::getMetadata(), utostr(Hash),
MCContext::GenericSectionID);
case Triple::MachO: