This is an archive of the discontinued LLVM Phabricator instance.

[llvm-nm] Write "no symbol" output to stderr
ClosedPublic

Authored by phosek on Oct 5 2018, 1:09 PM.

Details

Summary

This matches the output of binutils' nm and ensures that any scripts
or tools that use nm and expect empty output in case there no symbols
don't break.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Oct 5 2018, 1:09 PM
rupprecht accepted this revision.Oct 5 2018, 1:36 PM

Thanks Petr, I completely missed that it was going to stderr!
There are two tests in lld and clang to update as well, see rL343743 and rL343744.

This revision is now accepted and ready to land.Oct 5 2018, 1:36 PM
phosek updated this revision to Diff 168530.Oct 5 2018, 1:56 PM

Thanks for pointing those out, I've included them in this change as well.

This revision was automatically updated to reflect the committed changes.