[all-commits] [llvm/llvm-project] 5ae8f2: [RISCV] Move fixELFSymbolsInTLSFixups to getRelocType

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Mar 15 11:00:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ae8f25dcc89dcd0238a6e38e63bffe67eeaabb8
      https://github.com/llvm/llvm-project/commit/5ae8f25dcc89dcd0238a6e38e63bffe67eeaabb8
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-03-15 (Sat, 15 Mar 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.h

  Log Message:
  -----------
  [RISCV] Move fixELFSymbolsInTLSFixups to getRelocType

fixELFSymbolsInTLSFixups walks the expression tree, which is complex and
unnecessary. As the expression must be relocatable, we can move the code
to getRelocType and just set SymA. The behavior is similar to GNU
assembler.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list