[WebAssembly] Support wasm exports with zero-length names.
authorDan Gohman <sunfish@mozilla.com>
Sat, 21 Dec 2019 05:44:24 +0000 (21:44 -0800)
committerDan Gohman <sunfish@mozilla.com>
Thu, 26 Mar 2020 23:20:43 +0000 (16:20 -0700)
commit66bfbedbdfb98bb3c8fbda9ee839e46b430122d1
tree8f3cef5a9139e176fc7a5aab4096d27a58156a2a
parentd865437d9c82f814dd3b0d0e60042e2c176e201f
[WebAssembly] Support wasm exports with zero-length names.

Zero-length strings are valid export names in WebAssembly, so allow
users to specify them.

Differential Revision: https://reviews.llvm.org/D71793
lld/test/wasm/export-name.ll
lld/wasm/InputChunks.h
lld/wasm/Writer.cpp
llvm/include/llvm/BinaryFormat/Wasm.h