[all-commits] [llvm/llvm-project] a1a29c: [Mips] Move fixELFSymbolsInTLSFixups to getRelocType

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Mar 15 10:50:13 PDT 2025


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

  Changed paths:
    M llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsMCExpr.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsMCExpr.h

  Log Message:
  -----------
  [Mips] 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