diff options
author | Sam Clegg <sbc@chromium.org> | 2019-08-23 01:00:55 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2019-08-23 01:00:55 +0000 |
commit | 90b6bb75e8ccca50706d81f5c0b9b1f40fe216f6 (patch) | |
tree | 92b4df30c3a591d4ee91af9c918fd08c4e8a6322 /llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp | |
parent | 926f4f76c3f819d5c8441574c560ddc476f84722 (diff) | |
download | bcm5719-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/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp')
-rw-r--r-- | llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp index 1122f275c33..cab2bbcb81b 100644 --- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp +++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp @@ -50,7 +50,7 @@ unsigned RISCVELFObjectWriter::getRelocType(MCContext &Ctx, bool IsPCRel) const { const MCExpr *Expr = Fixup.getValue(); // Determine the type of the relocation - unsigned Kind = Fixup.getKind(); + unsigned Kind = Fixup.getTargetKind(); if (IsPCRel) { switch (Kind) { default: |