[PATCH] D144596: Add extra parameter to thinlto-prefix-replace

Ivan Tadeu Ferreira Antunes Filho via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 15:17:45 PST 2023


itf created this revision.
itf added reviewers: ruiu, tejohnson, pcc, rnk.
Herald added subscribers: ormris, arphaman, steven_wu, hiraditya, arichardson, emaste.
Herald added a reviewer: MaskRay.
Herald added projects: lld-macho, All.
Herald added a reviewer: lld-macho.
itf requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This allows to replace the prefix of object files inside the generated
index-file when one specifies thinlto-index-only="index-file-name".
If during thinlto indexing one specifies: 
--thinlto-index-only=index.txt --thinlto-prefix-replace="oldpath/;newpath/;objpath/", 
then the prefix of the files generated by the thinlto indexing step will be replaced
from "oldpath" to "newpath", and the prefix of the linked objects listed in index.txt will
be replaced by "objpath" instead of  "newpath".


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144596

Files:
  lld/COFF/Config.h
  lld/COFF/LTO.cpp
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/LTO.cpp
  lld/MachO/Config.h
  lld/MachO/Driver.cpp
  lld/MachO/LTO.cpp
  lld/test/ELF/lto/thinlto-index-file-object-prefix-replace.ll
  lld/test/MachO/thinlto-index-file-object-prefix-replace.ll
  llvm/include/llvm/LTO/LTO.h
  llvm/lib/LTO/LTO.cpp
  llvm/tools/llvm-lto2/llvm-lto2.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144596.499654.patch
Type: text/x-patch
Size: 17874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230222/07be741d/attachment.bin>


More information about the llvm-commits mailing list