[PATCH] D83152: llvm-nm: add flag to suppress no symbols warning

Keith Smiley via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 13:41:13 PDT 2020


keith added a comment.

> Is there a build step executing llvm-nm that chokes on this? Can you say more about the use case?

Our use case for this is just scripts that analyze the symbols from some binaries, separately from our build system. Theoretically we could drop stderr (since we do handle the error code) and that might be "good enough". I would be a _bit_ worried without reading the rest of the code here whether by dropping stderr would lose any other "more-important" warnings (I might also be worried about this if we had a more generic `--quiet` option). I see this warning as pretty noisy for large static library targets where having object files with no symbols based on your deployment target is often expected in the libraries we're using.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83152/new/

https://reviews.llvm.org/D83152





More information about the llvm-commits mailing list