[all-commits] [llvm/llvm-project] 72bedf: [ELF] Inline InputSection::getParent. NFC

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Mar 8 11:26:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72bedf46c760ad7670801456450b57f360652be3
      https://github.com/llvm/llvm-project/commit/72bedf46c760ad7670801456450b57f360652be3
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

  Changed paths:
    M lld/ELF/InputSection.cpp
    M lld/ELF/InputSection.h

  Log Message:
  -----------
  [ELF] Inline InputSection::getParent. NFC

Combined with the previous change, lld executable is ~2K smaller and some code
paths using InputSection::getParent are more efficient.

The fragmented headers lead to a design limitation that OutputSection has to be
incomplete, so we cannot use static_cast.




More information about the All-commits mailing list