]> granicus.if.org Git - llvm/commit
[MC] Minor cleanup to MCFixup::Kind handling. NFC.
authorSam Clegg <sbc@chromium.org>
Fri, 23 Aug 2019 01:00:55 +0000 (01:00 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 23 Aug 2019 01:00:55 +0000 (01:00 +0000)
commitad3de21f68d4156ded6410cc93309614a35b572f
treeee74345e7b193f3d4dc0b2dd15e5d70ec7e99e86
parent487c33d3b49de8601e75c353a8397ff6fd84dbca
[MC] Minor cleanup to MCFixup::Kind handling. NFC.

Prefer `MCFixupKind` where possible and add getTargetKind() to
convert to `unsigned` when needed rather than scattering cast
operators around the place.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369720 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
include/llvm/MC/MCFixup.h
lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp
lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
lib/Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp
lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp
lib/Target/Hexagon/MCTargetDesc/HexagonELFObjectWriter.cpp
lib/Target/MSP430/MCTargetDesc/MSP430ELFObjectWriter.cpp
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp