[all-commits] [llvm/llvm-project] 7c20e7: [ELF] Support -plugin-opt=stats-file=

Alexander Richardson via All-commits all-commits at lists.llvm.org
Mon May 9 08:05:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c20e7ca8642bafa44f5829a14deea5f9b37f0ef
      https://github.com/llvm/llvm-project/commit/7c20e7ca8642bafa44f5829a14deea5f9b37f0ef
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/Options.td
    M lld/test/ELF/lto/stats-file-option.ll
    M lld/test/lit.cfg.py

  Log Message:
  -----------
  [ELF] Support -plugin-opt=stats-file=

This flag is added by clang::driver::tools::addLTOOptions() and was causing
errors for me when building the llvm-test-suite repository with LTO and
-DTEST_SUITE_COLLECT_STATS=ON. This replaces the --stats-file= option
added in 1c04b52b2594d403f739ed919ef420b1e47ae343 since the flag is only
used for LTO and should therefore be in the -plugin-opt= namespace.

Additionally, this commit fixes the `REQUIRES: asserts` that was added in
948d05324a150a5a24e93bad07c9090d5b8bd129: the feature was never defined in
the lld test suite so it effectively disabled the test.

Reviewed By: MaskRay, MTC

Differential Revision: https://reviews.llvm.org/D124105




More information about the All-commits mailing list