summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/MCTargetDesc
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-08-23 01:00:55 +0000
committerSam Clegg <sbc@chromium.org>2019-08-23 01:00:55 +0000
commit90b6bb75e8ccca50706d81f5c0b9b1f40fe216f6 (patch)
tree92b4df30c3a591d4ee91af9c918fd08c4e8a6322 /llvm/lib/Target/AMDGPU/MCTargetDesc
parent926f4f76c3f819d5c8441574c560ddc476f84722 (diff)
downloadbcm5719-llvm-90b6bb75e8ccca50706d81f5c0b9b1f40fe216f6.tar.gz
bcm5719-llvm-90b6bb75e8ccca50706d81f5c0b9b1f40fe216f6.zip
[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 llvm-svn: 369720
Diffstat (limited to 'llvm/lib/Target/AMDGPU/MCTargetDesc')
-rw-r--r--llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp
index 57c0ba26cc3..1f94ab79912 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp
@@ -109,7 +109,7 @@ static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
MCContext *Ctx) {
int64_t SignedValue = static_cast<int64_t>(Value);
- switch (static_cast<unsigned>(Fixup.getKind())) {
+ switch (Fixup.getTargetKind()) {
case AMDGPU::fixup_si_sopp_br: {
int64_t BrImm = (SignedValue - 4) / 4;
OpenPOWER on IntegriCloud