[all-commits] [llvm/llvm-project] 70e093: [Driver][test] Refactor LLVMgold tests

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Feb 7 22:37:52 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 70e0935256fc173fbc57c7333727ab222af476eb
      https://github.com/llvm/llvm-project/commit/70e0935256fc173fbc57c7333727ab222af476eb
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-02-07 (Fri, 07 Feb 2020)

  Changed paths:
    M clang/test/Driver/freebsd.c
    R clang/test/Driver/gold-lto.c
    R clang/test/Driver/lto-plugin-darwin.c
    R clang/test/Driver/lto-plugin-linux.c
    R clang/test/Driver/lto-plugin-windows.c
    M clang/test/Driver/lto.c
    M clang/test/Driver/lto.cu
    M clang/test/Driver/thinlto.c
    M clang/test/Driver/thinlto.cu

  Log Message:
  -----------
  [Driver][test] Refactor LLVMgold tests

LLVMgold.so tests are duplicated in several places. Deduplicate them.
Move the tests to lto.c and lto.cu
Specify -fuse-ld=bfd or -fuse-ld=gold.

In a future change, if -fuse-ld=lld or CLANG_DEFAULT_LINKER=lld without -fuse-ld=, we will remove -plugin /path/to/LLVMgold.so




More information about the All-commits mailing list