[PATCH] D145273: [lld-macho] Avoid running LTO pipeline for no files

Keith Smiley via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 3 13:28:39 PST 2023


keith created this revision.
Herald added subscribers: ormris, steven_wu, hiraditya, inglorion.
Herald added projects: lld-macho, All.
Herald added a reviewer: lld-macho.
keith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If no bitcode files are given as inputs but -object_path_lto is passed
we should avoid running the LTO pipeline.

This mirrors this patch from the ELF port https://github.com/llvm/llvm-project/commit/f3994e4dfa0214b2a09a0e327ba37e6b38bbcdb3

Fixes https://github.com/llvm/llvm-project/issues/61031


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145273

Files:
  lld/MachO/Driver.cpp
  lld/MachO/LTO.cpp
  lld/MachO/LTO.h
  lld/test/MachO/lto-object-path.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145273.502246.patch
Type: text/x-patch
Size: 3798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230303/4157403f/attachment.bin>


More information about the llvm-commits mailing list