[llvm] f569952 - [CSKY] Update shouldForceRelocation after #73721

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 18:20:13 PST 2023


Author: Fangrui Song
Date: 2023-12-07T18:20:08-08:00
New Revision: f5699525005cc85471cbebdab992d5414bb103eb

URL: https://github.com/llvm/llvm-project/commit/f5699525005cc85471cbebdab992d5414bb103eb
DIFF: https://github.com/llvm/llvm-project/commit/f5699525005cc85471cbebdab992d5414bb103eb.diff

LOG: [CSKY] Update shouldForceRelocation after #73721

Added: 
    

Modified: 
    llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
    llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp b/llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
index 76f5a5fc831f9..bceb41a267450 100644
--- a/llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
+++ b/llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
@@ -262,7 +262,8 @@ bool CSKYAsmBackend::mayNeedRelaxation(const MCInst &Inst,
 
 bool CSKYAsmBackend::shouldForceRelocation(const MCAssembler &Asm,
                                            const MCFixup &Fixup,
-                                           const MCValue &Target) {
+                                           const MCValue &Target,
+                                           const MCSubtargetInfo * /*STI*/) {
   if (Fixup.getKind() >= FirstLiteralRelocationKind)
     return true;
   switch (Fixup.getTargetKind()) {

diff  --git a/llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.h b/llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.h
index 8a2f743bdee63..5fa0c8c01185d 100644
--- a/llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.h
+++ b/llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.h
@@ -53,7 +53,8 @@ class CSKYAsmBackend : public MCAsmBackend {
                     const MCSubtargetInfo *STI) const override;
 
   bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
-                             const MCValue &Target) override;
+                             const MCValue &Target,
+                             const MCSubtargetInfo *STI) override;
 
   std::unique_ptr<MCObjectTargetWriter>
   createObjectTargetWriter() const override;


        


More information about the llvm-commits mailing list