[all-commits] [llvm/llvm-project] 5ad2aa: [ELF] SharedFile::parse: move verdefIndex assignme...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Feb 5 20:44:03 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ad2aae24474bb5366e84bfe27a5052185d856ce
      https://github.com/llvm/llvm-project/commit/5ad2aae24474bb5366e84bfe27a5052185d856ce
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-02-05 (Sat, 05 Feb 2022)

  Changed paths:
    M lld/ELF/InputFiles.cpp
    M lld/ELF/Symbols.h

  Log Message:
  -----------
  [ELF] SharedFile::parse: move verdefIndex assignment outside of ctor. NFC

SharedSymbol::SharedSymbol initializes verdefIndex and Symbol::replace
copies verdefIndex.

By move verdefIndex assignment outside of ctor, Symbol::replace can be changed
to not copy verdefIndex. This can be used to decrease work for for
ObjKind/BitcodeKind.




More information about the All-commits mailing list