[PATCH] D99887: [lld][WebAssembly] Add `--export-if-defined`

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 5 09:02:17 PDT 2021


sbc100 created this revision.
Herald added subscribers: wingo, dang, ecnelises, sunfish, jgravelle-google, dschuff.
Herald added a reviewer: MaskRay.
sbc100 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

Unlike the existing `--export` option this will not causes errors
or warnings if the specified symbol is not defined.

See: https://github.com/emscripten-core/emscripten/issues/13736


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99887

Files:
  lld/docs/WebAssembly.rst
  lld/test/wasm/export-if-defined.s
  lld/wasm/Config.h
  lld/wasm/Driver.cpp
  lld/wasm/Options.td
  lld/wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99887.335271.patch
Type: text/x-patch
Size: 4888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210405/f5399ffd/attachment.bin>


More information about the llvm-commits mailing list