[all-commits] [llvm/llvm-project] b0cb5c: [RISCV] Move RISCVELFStreamer::getRelocPairForSize...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Jan 31 13:14:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0cb5cb64d639a7829443ed3063b55802e4a879d
      https://github.com/llvm/llvm-project/commit/b0cb5cb64d639a7829443ed3063b55802e4a879d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-01-31 (Tue, 31 Jan 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVFixupKinds.h

  Log Message:
  -----------
  [RISCV] Move RISCVELFStreamer::getRelocPairForSize to RISCVFixUpKinds.h and reuse it. NFC

Reuse it for RISCVAsmBackend.cpp.
While there make the function return a pair of MCFixupKind to
remove static_casts elsewhere.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D142955




More information about the All-commits mailing list