[all-commits] [llvm/llvm-project] a52b91: [lld-macho] Allow order files and call graph sorti...

Leonard Grey via All-commits all-commits at lists.llvm.org
Thu Feb 17 11:20:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a52b9102d1f75ca0229e5e395d317fb9ecd51590
      https://github.com/llvm/llvm-project/commit/a52b9102d1f75ca0229e5e395d317fb9ecd51590
  Author: Leonard Grey <lgrey at chromium.org>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/SectionPriorities.cpp
    M lld/MachO/SectionPriorities.h
    A lld/test/MachO/cgprofile-orderfile.s

  Log Message:
  -----------
  [lld-macho] Allow order files and call graph sorting to be used together

If both an order file and a call graph profile are present, the edges of the
call graph which use symbols present in the order file are not used. All of
the symbols in the order file will appear at the beginning of the section just
as they do currently. In other words, the highest priority derived from the
call graph will be below the lowest priority derived from the order file.

Practically, this change renames CallGraphSort.{h,cpp} to SectionPriorities.{h,cpp},
and most order file and call graph profile related code is moved into the new
file to reduce duplication.

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




More information about the All-commits mailing list