[all-commits] [llvm/llvm-project] d36b96: [LinkerWrapper] Fix use of string savers and corre...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Jul 8 14:22:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d36b96afb2245d791eaf9d9b1b1adfa52df1e498
      https://github.com/llvm/llvm-project/commit/d36b96afb2245d791eaf9d9b1b1adfa52df1e498
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

  Log Message:
  -----------
  [LinkerWrapper] Fix use of string savers and correctly pass bitcode libraries

This patch removes some uses of string savers that are no-longer needed.
We also create a new string saver when linking bitcode files. It seems
that occasionally the symbol string references can go out of scope when
they are added to the LTO input so we need to save these names that are
used for symbol resolution. Additionally, a previous patch added new
logic for handling bitcode libraries, but failed to actually add them to
the input. This bug has been fixed.

Fixes #56445

Reviewed By: ye-luo

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




More information about the All-commits mailing list