[all-commits] [llvm/llvm-project] 45cdce: [lld-macho] Support -no_function_starts

Jez Ng via All-commits all-commits at lists.llvm.org
Fri Mar 26 15:14:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45cdceb40c5655618e3f0865e7056414bd001079
      https://github.com/llvm/llvm-project/commit/45cdceb40c5655618e3f0865e7056414bd001079
  Author: Jez Ng <jezng at fb.com>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/MachO/SyntheticSections.h
    M lld/MachO/Writer.cpp
    M lld/test/MachO/function-starts.s

  Log Message:
  -----------
  [lld-macho] Support -no_function_starts

Pretty simple code-wise. Also threw in some refactoring:

* Put the functionStartSection under Writer instead of InStruct, since
  it doesn't need to be accessed outside of Writer
* Adjusted the test to put all files under the temp dir instead of at
  the top-level
* Added some CHECK-LABELs to make it clearer where the function starts
  data is

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


  Commit: 94e369400e5380e10b49387fd321ff1564fb0207
      https://github.com/llvm/llvm-project/commit/94e369400e5380e10b49387fd321ff1564fb0207
  Author: Jez Ng <jezng at fb.com>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/test/MachO/time-trace.s

  Log Message:
  -----------
  [lld-macho] Fix parsing of --time-trace-{granularity,file}

Summary: We needed to use `Joined` instead of `Flag`. This wasn't caught
because the relevant test that was copied from LLD-ELF was still
invoking LLD-ELF instead of LLD-MachO...

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


  Commit: ae7aa9ed151d1af34f0d746031368ffe567b2eab
      https://github.com/llvm/llvm-project/commit/ae7aa9ed151d1af34f0d746031368ffe567b2eab
  Author: Jez Ng <jezng at fb.com>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    M lld/MachO/LTO.cpp
    A lld/test/MachO/thinlto-time-trace.ll

  Log Message:
  -----------
  [lld-macho] Add time tracing for LTO

The test is similar to the one used for LLD-ELF.

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


Compare: https://github.com/llvm/llvm-project/compare/c41f2f649282...ae7aa9ed151d


More information about the All-commits mailing list