summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML/WasmYAML.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-09-20 19:03:35 +0000
committerSam Clegg <sbc@chromium.org>2017-09-20 19:03:35 +0000
commitd95ed959d8ab270808aeec8b31f06140e68834ea (patch)
tree989216a22660bb777d0fcff71cbc4540067b80ed /llvm/lib/ObjectYAML/WasmYAML.cpp
parent01a409520b39946bd4c7e86f83bc2d01d8c839d4 (diff)
downloadbcm5719-llvm-d95ed959d8ab270808aeec8b31f06140e68834ea.tar.gz
bcm5719-llvm-d95ed959d8ab270808aeec8b31f06140e68834ea.zip
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/WasmYAML.cpp')
-rw-r--r--llvm/lib/ObjectYAML/WasmYAML.cpp1
1 files changed, 1 insertions, 0 deletions
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) {
OpenPOWER on IntegriCloud