This patch adds a StatsFile option supported by gold to lld, related patch https://reviews.llvm.org/D45531.
lgtm. Few minor comments to address below before submitting.
nit: s/Setup/Set up/
Nit: I believe the new convention in this test directory at least is to prefix comments with two semicolons.
nit: looks like no need to split this command into 2 lines to fit into 80 chars
Sorry to interrupt, seems this patch caused the build failure, see https://lab.llvm.org/buildbot/#/builders/124/builds/3944. I don't have any clue why this failed, Did I miss something for the test file? Like ; REQUIRES: x86 is indispensable?