[all-commits] [llvm/llvm-project] a65678: [lld-macho] Avoid running LTO pipeline for no files

Keith Smiley via All-commits all-commits at lists.llvm.org
Fri Mar 3 15:49:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a65678b35bbce31f09aebb2d1188c385b9dbac5e
      https://github.com/llvm/llvm-project/commit/a65678b35bbce31f09aebb2d1188c385b9dbac5e
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2023-03-03 (Fri, 03 Mar 2023)

  Changed paths:
    M lld/MachO/LTO.cpp
    M lld/MachO/LTO.h
    M lld/test/MachO/lto-object-path.ll

  Log Message:
  -----------
  [lld-macho] Avoid running LTO pipeline for no files

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

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




More information about the All-commits mailing list