[llvm] [SystemZ][GOFF] Reference to external variable needs PR symbol (PR #185742)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 05:02:20 PDT 2026


================
@@ -673,6 +673,10 @@ class LLVM_ABI AsmPrinter : public MachineFunctionPass {
   virtual bool
   isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const;
 
+  /// Targets can override this if they need to emit additional data after an
+  /// external global variable was emitted.
+  virtual void emitExternalGlobalVariableEnd(MCSymbol *Sym) {}
----------------
uweigand wrote:

Not sure if adding this is worthwhile.  Maybe in this case just doing an extra loop over `M.globals()` in `emitAsmEndOfFile` is the simpler way.

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


More information about the llvm-commits mailing list