This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Cleanup output of --verbose
ClosedPublic

Authored by sbc100 on Sep 10 2021, 1:54 AM.

Details

Summary

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.

Diff Detail

Event Timeline

sbc100 created this revision.Sep 10 2021, 1:54 AM
sbc100 requested review of this revision.Sep 10 2021, 1:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2021, 1:54 AM
dschuff accepted this revision.Sep 10 2021, 8:15 AM
This revision is now accepted and ready to land.Sep 10 2021, 8:15 AM
This revision was automatically updated to reflect the committed changes.