[all-commits] [llvm/llvm-project] 685b21: [ELF] Make relocateAlloc target specific. NFC

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Oct 17 11:01:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 685b21255315e699aa839d93fe71b37d806c90c2
      https://github.com/llvm/llvm-project/commit/685b21255315e699aa839d93fe71b37d806c90c2
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M lld/ELF/AArch64ErrataFix.cpp
    M lld/ELF/ARMErrataFix.cpp
    M lld/ELF/Arch/AArch64.cpp
    M lld/ELF/Arch/PPC.cpp
    M lld/ELF/Arch/PPC64.cpp
    M lld/ELF/Arch/X86.cpp
    M lld/ELF/Arch/X86_64.cpp
    M lld/ELF/InputSection.cpp
    M lld/ELF/InputSection.h
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/Target.cpp
    M lld/ELF/Target.h

  Log Message:
  -----------
  [ELF] Make relocateAlloc target specific. NFC

The target-specific code (AArch64, PPC64) does not fit into the generic code and
adds virtual function overhead. Move relocateAlloc into ELF/Arch/ instead. This
removes many virtual functions (relaxTls*). In addition, this helps get rid of
getRelocTargetVA dispatch and many RelExpr members in the future.




More information about the All-commits mailing list