[all-commits] [llvm/llvm-project] d51054: [Fuchsia] Rely on linker switch rather than dead c...

Petr Hosek via All-commits all-commits at lists.llvm.org
Thu Jun 4 14:25:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d51054217403b47f452619e11318bd214749a845
      https://github.com/llvm/llvm-project/commit/d51054217403b47f452619e11318bd214749a845
  Author: Petr Hosek <phosek at google.com>
  Date:   2020-06-04 (Thu, 04 Jun 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Fuchsia.cpp
    M clang/lib/Driver/ToolChains/Fuchsia.h
    M clang/test/Driver/fuchsia.c
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
    M llvm/test/Instrumentation/InstrProfiling/linkage.ll

  Log Message:
  -----------
  [Fuchsia] Rely on linker switch rather than dead code ref for profile runtime

Follow the model used on Linux, where the clang driver passes the
linker a -u switch to force the profile runtime to be linked in,
rather than having every TU emit a dead function with a reference.

Patch By: mcgrathr

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




More information about the All-commits mailing list