From d95ed959d8ab270808aeec8b31f06140e68834ea Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 20 Sep 2017 19:03:35 +0000 Subject: Reland "[WebAssembly] Add support for naming wasm data segments" Add adds support for naming data segments. This is useful useful linkers so that they can merge similar sections. Differential Revision: https://reviews.llvm.org/D37886 llvm-svn: 313795 --- llvm/lib/ObjectYAML/WasmYAML.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/ObjectYAML/WasmYAML.cpp') diff --git a/llvm/lib/ObjectYAML/WasmYAML.cpp b/llvm/lib/ObjectYAML/WasmYAML.cpp index 8aea8cfb4bc..a5c1d13598c 100644 --- a/llvm/lib/ObjectYAML/WasmYAML.cpp +++ b/llvm/lib/ObjectYAML/WasmYAML.cpp @@ -60,6 +60,7 @@ static void sectionMapping(IO &IO, WasmYAML::LinkingSection &Section) { IO.mapRequired("DataSize", Section.DataSize); IO.mapRequired("DataAlignment", Section.DataAlignment); IO.mapOptional("SymbolInfo", Section.SymbolInfos); + IO.mapOptional("SegmentNames", Section.SegmentNames); } static void sectionMapping(IO &IO, WasmYAML::CustomSection &Section) { -- cgit v1.2.3