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

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 9 09:09:22 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h llvm/include/llvm/MC/MCGOFFAttributes.h llvm/include/llvm/MC/MCSectionGOFF.h llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp llvm/lib/Target/SystemZ/SystemZAsmPrinter.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/MC/MCSectionGOFF.h b/llvm/include/llvm/MC/MCSectionGOFF.h
index 261bee5e5..192996551 100644
--- a/llvm/include/llvm/MC/MCSectionGOFF.h
+++ b/llvm/include/llvm/MC/MCSectionGOFF.h
@@ -126,7 +126,6 @@ public:
   bool isXtorSection() const { return XtorSectionType != NotXtor; }
   void setXtorSectionType(XtorType Value) { XtorSectionType = Value; }
   XtorType getXtorSectionType() const { return XtorSectionType; }
-
 };
 } // end namespace llvm
 
diff --git a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
index 5d43eb083..4e8efe6b5 100644
--- a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
@@ -1023,8 +1023,7 @@ void SystemZAsmPrinter::emitMachineConstantPoolValue(
 
 // Emit the ctor or dtor list taking into account the init priority.
 void SystemZAsmPrinter::emitXXStructorList(const DataLayout &DL,
-                                           const Constant *List,
-                                           bool IsCtor) {
+                                           const Constant *List, bool IsCtor) {
   if (TM.getTargetTriple().isOSBinFormatGOFF())
     AsmPrinter::emitXXStructorList(DL, List, IsCtor);
 

``````````

</details>


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


More information about the llvm-branch-commits mailing list