[llvm] [SystemZ][z/OS] Simplify the GOFF section handling (PR #101068)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 12:21:19 PDT 2024


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 fb7028237bac1dccd328b6c3150e50e222a0879b 25e3357db7673ff70062b537c98506ff3cbd6f2c --extensions cpp,h -- llvm/include/llvm/BinaryFormat/GOFF.h llvm/include/llvm/MC/MCContext.h llvm/include/llvm/MC/MCObjectFileInfo.h llvm/include/llvm/MC/MCSectionGOFF.h llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp llvm/lib/MC/MCContext.cpp llvm/lib/MC/MCObjectFileInfo.cpp llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 7c529fbdab..8e1fab944c 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -2733,7 +2733,8 @@ MCSection *TargetLoweringObjectFileGOFF::SelectSectionForGlobal(
     const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const {
   auto *Symbol = TM.getSymbol(GO);
   if (Kind.isBSS())
-    return getContext().getGOFFSection(Symbol->getName(), SectionKind::getBSS());
+    return getContext().getGOFFSection(Symbol->getName(),
+                                       SectionKind::getBSS());
 
   return getContext().getObjectFileInfo()->getTextSection();
 }

``````````

</details>


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


More information about the llvm-commits mailing list