diff options
author | Sam Clegg <sbc@chromium.org> | 2017-09-20 19:03:35 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-09-20 19:03:35 +0000 |
commit | d95ed959d8ab270808aeec8b31f06140e68834ea (patch) | |
tree | 989216a22660bb777d0fcff71cbc4540067b80ed /llvm/lib/ObjectYAML | |
parent | 01a409520b39946bd4c7e86f83bc2d01d8c839d4 (diff) | |
download | llvm-d95ed959d8ab270808aeec8b31f06140e68834ea.zip llvm-d95ed959d8ab270808aeec8b31f06140e68834ea.tar.gz llvm-d95ed959d8ab270808aeec8b31f06140e68834ea.tar.bz2 |
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
Diffstat (limited to 'llvm/lib/ObjectYAML')
-rw-r--r-- | llvm/lib/ObjectYAML/WasmYAML.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/WasmYAML.cpp b/llvm/lib/ObjectYAML/WasmYAML.cpp index 8aea8cf..a5c1d13 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) { |