[PATCH] D58599: [LLD] Add summary support
Alexandre Ganea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 24 19:25:40 PST 2019
aganea created this revision.
aganea added reviewers: rnk, zturner, mstorsjo, ruiu, thakis.
Herald added subscribers: jdoerfert, mgorny.
Herald added a project: LLVM.
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.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D58599
Files:
COFF/Config.h
COFF/Driver.cpp
COFF/Options.td
COFF/PDB.cpp
Common/CMakeLists.txt
Common/Summary.cpp
test/COFF/pdb-type-server-simple.test
test/COFF/precomp-link.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58599.188099.patch
Type: text/x-patch
Size: 7760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190225/08f2158f/attachment.bin>
More information about the llvm-commits
mailing list