Skip to content

Commit 123e312

Browse files
committed
Address review comments
1 parent 723863f commit 123e312

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,6 @@ bool RISCVAsmBackend::addReloc(const MCFragment &F, const MCFixup &Fixup,
699699
(getFixupKindInfo(Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel))
700700
IsResolved = isPCRelFixupResolved(Target.getAddSym(), F);
701701

702-
if (IsResolved && shouldForceRelocation(Fixup, Target))
703-
IsResolved = false;
704-
705702
if (!IsResolved) {
706703
// Some Fixups require a vendor relocation, record it (directly) before we
707704
// add the relocation.

llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace llvm {
2121
class MCAssembler;
2222
class MCObjectTargetWriter;
2323
class raw_ostream;
24-
class MCSymbolELF;
2524

2625
class RISCVAsmBackend : public MCAsmBackend {
2726
const MCSubtargetInfo &STI;
@@ -52,7 +51,7 @@ class RISCVAsmBackend : public MCAsmBackend {
5251
uint64_t &Value) override;
5352

5453
std::optional<StringRef>
55-
getVendorIdentifierForFixup(unsigned TargetFixupKind) const;
54+
getVendorIdentifierForFixup(unsigned FixupKind) const;
5655

5756
bool addReloc(const MCFragment &, const MCFixup &, const MCValue &,
5857
uint64_t &FixedValue, bool IsResolved) override;

0 commit comments

Comments
 (0)