summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
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/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
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/Mips/MCTargetDesc/MipsELFObjectWriter.cpp')
-rw-r--r--llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
index c0c61a29a60..cc3168790b9 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
@@ -219,7 +219,7 @@ unsigned MipsELFObjectWriter::getRelocType(MCContext &Ctx,
const MCFixup &Fixup,
bool IsPCRel) const {
// Determine the type of the relocation.
- unsigned Kind = (unsigned)Fixup.getKind();
+ unsigned Kind = Fixup.getTargetKind();
switch (Kind) {
case FK_NONE:
OpenPOWER on IntegriCloud