[PATCH] D45771: [Driver] Support for -save-stats in AddGoldPlugin.

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 18 08:03:12 PDT 2018


fhahn created this revision.
fhahn added reviewers: tejohnson, mehdi_amini, compnerd.
Herald added a subscriber: emaste.
fhahn added a dependency: D45531: [LTO] Add stats-file option to LTO/Config.h..

This patch updates AddGoldPlugin to pass stats-file to the Gold plugin,
if -save-stats is passed. It also moves the save-stats option handling
to a helper function tools::getStatsFileName.


Repository:
  rC Clang

https://reviews.llvm.org/D45771

Files:
  lib/Driver/ToolChains/Ananas.cpp
  lib/Driver/ToolChains/Clang.cpp
  lib/Driver/ToolChains/CloudABI.cpp
  lib/Driver/ToolChains/CommonArgs.cpp
  lib/Driver/ToolChains/CommonArgs.h
  lib/Driver/ToolChains/FreeBSD.cpp
  lib/Driver/ToolChains/Gnu.cpp
  test/Driver/save-stats.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45771.142938.patch
Type: text/x-patch
Size: 9446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180418/936181de/attachment-0001.bin>


More information about the cfe-commits mailing list