[all-commits] [llvm/llvm-project] 552d84: [ELF] Use SmallVector for many SyntheticSections. NFC

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Dec 17 19:22:28 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 552d84414d2508731ecf2f079fec76b1447020b7
      https://github.com/llvm/llvm-project/commit/552d84414d2508731ecf2f079fec76b1447020b7
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-12-17 (Fri, 17 Dec 2021)

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

  Log Message:
  -----------
  [ELF] Use SmallVector for many SyntheticSections. NFC

This decreases struct sizes and usually decreases the lld executable
size (39KiB for my x86-64 executable) (unless in some cases smaller
SmallVector leads to more inlining, e.g. StringTableBuilder).
For --gdb-index, there may be memory usage saving.




More information about the All-commits mailing list