[all-commits] [llvm/llvm-project] 5acc6d: [lld-macho] Disambiguate bitcode files with the sa...

Leonard Grey via All-commits all-commits at lists.llvm.org
Thu Jul 22 19:50:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5acc6d45727a8a603ad937e393d942eb7cc79a0d
      https://github.com/llvm/llvm-project/commit/5acc6d45727a8a603ad937e393d942eb7cc79a0d
  Author: Leonard Grey <lgrey at chromium.org>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/Driver.h
    M lld/MachO/DriverUtils.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputFiles.h
    A lld/test/MachO/lto-archivecollision.ll

  Log Message:
  -----------
  [lld-macho] Disambiguate bitcode files with the same name by archive name/offset in archive

Ported from COFF/ELF; test is adapted from
test/COFF/thinlto-archivecollision.ll

LTO expects every bitcode file to have a unique name. If given multiple bitcode
files with the same name, it errors with "Expected at most one ThinLTO module
per bitcode file".

This change incorporates the archive name, to disambiguate members with the
same name in different archives and the offset in archive to disambiguate
members with the same name in the same archive.

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




More information about the All-commits mailing list