[PATCH] D109583: [lld][WebAssembly] Cleanup output of --verbose

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 10 01:54:13 PDT 2021


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

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109583

Files:
  lld/wasm/InputFiles.cpp
  lld/wasm/InputFiles.h
  lld/wasm/OutputSections.cpp
  lld/wasm/OutputSections.h
  lld/wasm/Writer.cpp
  lld/wasm/WriterUtils.cpp
  lld/wasm/WriterUtils.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109583.371828.patch
Type: text/x-patch
Size: 4659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210910/5d807328/attachment.bin>


More information about the llvm-commits mailing list