[llvm] [SPARC][IAS] Emit the correct 32-bit ELF machine type (PR #96583)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 06:58:45 PDT 2024


================
@@ -131,15 +131,16 @@ static unsigned getFixupKindNumBytes(unsigned Kind) {
 namespace {
   class SparcAsmBackend : public MCAsmBackend {
   protected:
-    const Target &TheTarget;
     bool Is64Bit;
+    bool HasV9;
 
   public:
-    SparcAsmBackend(const Target &T)
-        : MCAsmBackend(StringRef(T.getName()) == "sparcel"
+    SparcAsmBackend(const Target &T, const MCSubtargetInfo &STI)
----------------
jrtc27 wrote:

Yes, that's normal, you just take what you need

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


More information about the llvm-commits mailing list