[llvm-branch-commits] [llvm] [SystemZ] Implement ctor/dtor emission via @@SQINIT and .xtor sections (PR #171476)

Ulrich Weigand via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 7 05:53:37 PST 2026


================
@@ -1589,8 +1641,12 @@ void SystemZAsmPrinter::emitPPA1(MCSymbol *FnEndSym) {
 }
 
 void SystemZAsmPrinter::emitStartOfAsmFile(Module &M) {
-  if (TM.getTargetTriple().isOSzOS())
+  if (TM.getTargetTriple().isOSzOS()) {
+    ADASym = getObjFileLowering().getADASection()->getBeginSymbol();
----------------
uweigand wrote:

Why do we need to have that variable?  Can't we just get the begin symbol where needed?

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


More information about the llvm-branch-commits mailing list