aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-05-10 18:27:45 -0400
committerNico Weber <thakis@chromium.org>2021-05-10 18:28:28 -0400
commit061e071d8c9b98526f35cad55a918a4f1615afd4 (patch)
treee0cdd28d1605419431e3d1b44c1210dbe4ed9b21 /llvm/lib/MC/MCObjectFileInfo.cpp
parent6d8b070d96197df6b5bf9fc2c53a78171ba64c6c (diff)
downloadllvm-061e071d8c9b98526f35cad55a918a4f1615afd4.zip
llvm-061e071d8c9b98526f35cad55a918a4f1615afd4.tar.gz
llvm-061e071d8c9b98526f35cad55a918a4f1615afd4.tar.bz2
Revert "[lld][WebAssembly] Initial support merging string data"
This reverts commit 5000a1b4b9edeb9e994f2a5b36da8d48599bea49. Breaks tests, see https://reviews.llvm.org/D97657#2749151 Easily repros locally with `ninja check-llvm-mc-webassembly`.
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 92091ff..360ac97 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -855,9 +855,9 @@ void MCObjectFileInfo::initWasmMCObjectFileInfo(const Triple &T) {
// DWP Sections
DwarfCUIndexSection =
- Ctx->getWasmSection(".debug_cu_index", SectionKind::getMetadata());
+ Ctx->getWasmSection(".debug_cu_index", SectionKind::getMetadata(), 0);
DwarfTUIndexSection =
- Ctx->getWasmSection(".debug_tu_index", SectionKind::getMetadata());
+ Ctx->getWasmSection(".debug_tu_index", SectionKind::getMetadata(), 0);
// Wasm use data section for LSDA.
// TODO Consider putting each function's exception table in a separate
@@ -1008,8 +1008,8 @@ MCSection *MCObjectFileInfo::getDwarfComdatSection(const char *Name,
return Ctx->getELFSection(Name, ELF::SHT_PROGBITS, ELF::SHF_GROUP, 0,
utostr(Hash), /*IsComdat=*/true);
case Triple::Wasm:
- return Ctx->getWasmSection(Name, SectionKind::getMetadata(), 0,
- utostr(Hash), MCContext::GenericSectionID);
+ return Ctx->getWasmSection(Name, SectionKind::getMetadata(), utostr(Hash),
+ MCContext::GenericSectionID);
case Triple::MachO:
case Triple::COFF:
case Triple::GOFF: