[PATCH] D69607: Add a feature to explain why some file gets included to the linker's output

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 09:24:08 PST 2019


MaskRay added a comment.

In D69607#1726863 <https://reviews.llvm.org/D69607#1726863>, @thakis wrote:

> I think this is a cool feature. Could it accept symbol names in addition to files as well? ld64 has a "-why_live" for symbols, and a "-why_load" for object files (https://www.manpagez.com/man/1/ld64/). I've used why_live a lot more than why_load.


@thakis The current implementation uses the option name `--explain` and allows either a symbol name and a filename pattern. Do you have a preference of using an alternative name, or using different option names?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69607





More information about the llvm-commits mailing list