[llvm] [RISCV][MC] Pass MCSubtargetInfo down to shouldForceRelocation and evaluateTargetFixup. (PR #73721)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 10:19:09 PST 2023


================
@@ -101,7 +101,8 @@ class MCAsmBackend {
   /// Hook to check if a relocation is needed for some target specific reason.
   virtual bool shouldForceRelocation(const MCAssembler &Asm,
                                      const MCFixup &Fixup,
-                                     const MCValue &Target) {
+                                     const MCValue &Target,
+                                     const MCSubtargetInfo *STI) {
----------------
topperc wrote:

It does shadow. The compiler did complain that `.` was used on a pointer. So the compiler won't let you get to the member. There are already other instances of shadowing in this file.

https://github.com/llvm/llvm-project/pull/73721


More information about the llvm-commits mailing list