[all-commits] [llvm/llvm-project] 3a7bcb: [lld][WebAssembly] Cleanup output of --verbose

Sam Clegg via All-commits all-commits at lists.llvm.org
Fri Sep 10 08:40:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a7bcba34b3aac01d2a7fc921c9e58e7b55e5d52
      https://github.com/llvm/llvm-project/commit/3a7bcba34b3aac01d2a7fc921c9e58e7b55e5d52
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M lld/wasm/InputFiles.cpp
    M lld/wasm/InputFiles.h
    M lld/wasm/OutputSections.cpp
    M lld/wasm/OutputSections.h
    M lld/wasm/Writer.cpp
    M lld/wasm/WriterUtils.cpp
    M lld/wasm/WriterUtils.h

  Log Message:
  -----------
  [lld][WebAssembly] Cleanup output of --verbose

Remove some unnecessary logging from wasm-ld when running under
`--verbose`.  Unlike `-debug` this logging is available in release
builds.  This change makes it little more minimal/readable.

Also, avoid compiling the `debugWrite` function in releaase builds
where it does nothing.  This should remove a lot debug strings from
the binary, and avoid having to construct unused debug strings at
runtime.

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




More information about the All-commits mailing list