aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-05-07 19:40:50 +0000
committerSam Clegg <sbc@chromium.org>2018-05-07 19:40:50 +0000
commitfb807d4dd49f912313ea2fde4fd3acac271a09cb (patch)
treea96df4842db3a1da47f51aa908ee1bc24f680b7e /llvm/lib/MC/MCObjectFileInfo.cpp
parentcca69985045e00a1fe5612e11587cf8065b6e8be (diff)
downloadllvm-fb807d4dd49f912313ea2fde4fd3acac271a09cb.zip
llvm-fb807d4dd49f912313ea2fde4fd3acac271a09cb.tar.gz
llvm-fb807d4dd49f912313ea2fde4fd3acac271a09cb.tar.bz2
[WebAssembly] Ensure all .debug_XXX section has proper symbol names
Updated wasm section symbols names to match section name, and ensure all referenced sections will have a symbol (per DWARF spec v3, Figure 43) Patch by Yury Delendik! Differential Revision: https://reviews.llvm.org/D46543 llvm-svn: 331664
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index ce9c352..e289017 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -870,10 +870,13 @@ void MCObjectFileInfo::initWasmMCObjectFileInfo(const Triple &T) {
DwarfLineStrSection =
Ctx->getWasmSection(".debug_line_str", SectionKind::getMetadata());
DwarfStrSection = Ctx->getWasmSection(".debug_str", SectionKind::getMetadata(), ".debug_str");
- DwarfLocSection = Ctx->getWasmSection(".debug_loc", SectionKind::getMetadata());
- DwarfAbbrevSection = Ctx->getWasmSection(".debug_abbrev", SectionKind::getMetadata(), ".section_abbrev");
+ DwarfLocSection = Ctx->getWasmSection(
+ ".debug_loc", SectionKind::getMetadata(), ".debug_loc");
+ DwarfAbbrevSection = Ctx->getWasmSection(
+ ".debug_abbrev", SectionKind::getMetadata(), ".debug_abbrev");
DwarfARangesSection = Ctx->getWasmSection(".debug_aranges", SectionKind::getMetadata());
- DwarfRangesSection = Ctx->getWasmSection(".debug_ranges", SectionKind::getMetadata(), ".debug_range");
+ DwarfRangesSection = Ctx->getWasmSection(
+ ".debug_ranges", SectionKind::getMetadata(), ".debug_ranges");
DwarfMacinfoSection = Ctx->getWasmSection(".debug_macinfo", SectionKind::getMetadata(), ".debug_macinfo");
DwarfAddrSection = Ctx->getWasmSection(".debug_addr", SectionKind::getMetadata());
DwarfCUIndexSection = Ctx->getWasmSection(".debug_cu_index", SectionKind::getMetadata());