summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-12-13 21:53:40 +0000
committerSam Clegg <sbc@chromium.org>2017-12-13 21:53:40 +0000
commit2b46be6545def38ecf555e22a0031e1f628ce654 (patch)
tree0bc054c71e48d497bef38d0633eb2c80d7894ac0 /tools
parentd5956c26dc5971bef6bad3198c902ba3e25c81d2 (diff)
[WebAssembly] Add linking metatdata test coverage for wasm2yaml
Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish Differential Revision: https://reviews.llvm.org/D41196 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/yaml2obj/yaml2wasm.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/yaml2obj/yaml2wasm.cpp b/tools/yaml2obj/yaml2wasm.cpp
index b4c21d0f0e5..3eae8727b60 100644
--- a/tools/yaml2obj/yaml2wasm.cpp
+++ b/tools/yaml2obj/yaml2wasm.cpp
@@ -156,7 +156,6 @@ int WasmWriter::writeSectionContent(raw_ostream &OS, WasmYAML::LinkingSection &S
encodeULEB128(wasm::WASM_SEGMENT_INFO, OS);
encodeULEB128(Section.SegmentInfos.size(), SubSection.GetStream());
for (const WasmYAML::SegmentInfo &SegmentInfo : Section.SegmentInfos) {
- encodeULEB128(SegmentInfo.Index, SubSection.GetStream());
writeStringRef(SegmentInfo.Name, SubSection.GetStream());
encodeULEB128(SegmentInfo.Alignment, SubSection.GetStream());
encodeULEB128(SegmentInfo.Flags, SubSection.GetStream());