I am proposing a very simple summary of the data processed by LLD, to be displayed at the end of linking.
Currently, this is enabled through a hidden (LLD-specific) COFF flag /summary, but it could be used in the other drivers too.
Here's an example output:
Summary -------------------------------------------------------------------------------- 4777 Input OBJ files (expanded from all cmd-line inputs) 68 Dependent PDB files 31 Dependent PCH OBJ files 49283 Output PDB strings 1785681 Output global symbol records
It is purposely very simple: it displays only a <u64,string> pair; there's no grouping or sorting whatsoever.
Also, the line will not be displayed if the value is zero, to avoid noise.
nit: you could directly assign, like Config->ShowSummary = Args.hasArg(OPT_summary).