[PATCH] D60637: [WebAssembly] Emit the DataCount section when bulk memory is enabled

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 15:29:18 PDT 2019


tlively created this revision.
tlively added reviewers: aheejin, dschuff, sbc100.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google.
Herald added a project: LLVM.

The DataCount section is necessary for the bulk memory operations
memory.init and data.drop to validate, but it is not recognized by
engines that do not support bulk memory, so emit the section only if
bulk-memory is enabled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60637

Files:
  lld/test/wasm/data-segment-merging.ll
  lld/wasm/OutputSections.cpp
  lld/wasm/OutputSections.h
  lld/wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60637.194970.patch
Type: text/x-patch
Size: 4515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190412/65b9a172/attachment.bin>


More information about the llvm-commits mailing list