[all-commits] [llvm/llvm-project] 99a2d9: [ELF] Speed up/simplify removeUnusedSyntheticSecti...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Nov 28 21:07:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99a2d940dd77a9c3699c71024b38baee98df8292
      https://github.com/llvm/llvm-project/commit/99a2d940dd77a9c3699c71024b38baee98df8292
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-11-28 (Sun, 28 Nov 2021)

  Changed paths:
    M lld/ELF/Writer.cpp

  Log Message:
  -----------
  [ELF] Speed up/simplify removeUnusedSyntheticSections. NFC

Make one change: when the OutputSection is nullptr (due to /DISCARD/ or garbage
collected BssSection (replaceCommonSymbols)), discard the SyntheticSection as well.




More information about the All-commits mailing list