[all-commits] [llvm/llvm-project] a6f406: [lld][WebAssembly] Add `--export-if-defined`

Sam Clegg via All-commits all-commits at lists.llvm.org
Thu Apr 29 10:59:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6f406480a223068875602fb46e7b1db74873564
      https://github.com/llvm/llvm-project/commit/a6f406480a223068875602fb46e7b1db74873564
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2021-04-29 (Thu, 29 Apr 2021)

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

  Log Message:
  -----------
  [lld][WebAssembly] Add `--export-if-defined`

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

Differential Revision: https://reviews.llvm.org/D99887




More information about the All-commits mailing list