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

John Paul Adrian Glaubitz via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 12:06:17 PDT 2024


================
@@ -132,14 +132,18 @@ namespace {
   class SparcAsmBackend : public MCAsmBackend {
   protected:
     const Target &TheTarget;
+    const MCSubtargetInfo &TheSTI;
     bool Is64Bit;
+    bool HasV9;
 
   public:
-    SparcAsmBackend(const Target &T)
+    SparcAsmBackend(const Target &T, const MCSubtargetInfo &STI)
         : MCAsmBackend(StringRef(T.getName()) == "sparcel"
                            ? llvm::endianness::little
                            : llvm::endianness::big),
-          TheTarget(T), Is64Bit(StringRef(TheTarget.getName()) == "sparcv9") {}
+          TheTarget(T), TheSTI(STI),
+          Is64Bit(StringRef(TheTarget.getName()) == "sparcv9"),
----------------
glaubitz wrote:

Okay, thanks for the clarification. We're good then. ;-)

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


More information about the llvm-commits mailing list