[all-commits] [llvm/llvm-project] 4e8116: [ELF] Refactor uses of getInputSections to improve...

Andrew Ng via All-commits all-commits at lists.llvm.org
Tue Jan 21 04:36:41 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e8116f4692e9b5787ba91c6b557b113aae7e244
      https://github.com/llvm/llvm-project/commit/4e8116f4692e9b5787ba91c6b557b113aae7e244
  Author: Andrew Ng <andrew.ng at sony.com>
  Date:   2020-01-21 (Tue, 21 Jan 2020)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/OutputSections.cpp
    M lld/ELF/OutputSections.h

  Log Message:
  -----------
  [ELF] Refactor uses of getInputSections to improve efficiency NFC

Add new method getFirstInputSection and use instead of getInputSections
where appropriate to avoid creation of an unneeded vector of input
sections.

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




More information about the All-commits mailing list