[all-commits] [llvm/llvm-project] cb203f: [ELF] Change InStruct/Partition pointers to unique...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Dec 27 18:15:38 PST 2021


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

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/InputFiles.cpp
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/Relocations.cpp
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/SyntheticSections.h
    M lld/ELF/Writer.cpp

  Log Message:
  -----------
  [ELF] Change InStruct/Partition pointers to unique_ptr

and remove associated make<XXX> calls.
gnuHash and sysvHash are unchanged, otherwise LinkerScript::discard would
destroy the objects which may be referenced by input section descriptions.

My x86-64 lld executable is 121+KiB smaller.




More information about the All-commits mailing list