[all-commits] [llvm/llvm-project] 896335: Don't export symbols from clang/opt/llc if plugins...

Eli Friedman via All-commits all-commits at lists.llvm.org
Mon Mar 23 12:17:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 896335bfb8ea2c09c361c4f1e5a9aa6fb78caf88
      https://github.com/llvm/llvm-project/commit/896335bfb8ea2c09c361c4f1e5a9aa6fb78caf88
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2020-03-23 (Mon, 23 Mar 2020)

  Changed paths:
    M clang/tools/driver/CMakeLists.txt
    M llvm/cmake/modules/AddLLVM.cmake
    M llvm/tools/bugpoint/CMakeLists.txt
    M llvm/tools/llc/CMakeLists.txt
    M llvm/tools/llvm-stress/CMakeLists.txt
    M llvm/tools/opt/CMakeLists.txt
    M llvm/unittests/Passes/CMakeLists.txt

  Log Message:
  -----------
  Don't export symbols from clang/opt/llc if plugins are disabled.

The only reason we export symbols from these tools is to support
plugins; if we don't have plugins, exporting symbols just bloats the
executable and makes LTO less effective.

See review of D75879 for the discussion that led to this patch.

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




More information about the All-commits mailing list