[llvm] [ARM] [Windows] Use IMAGE_SYM_CLASS_STATIC for private functions (PR #101828)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 3 08:01:28 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 41211919db5feb279d2954eb590a3cf2a1742152 009491d81fd1b661f7ea2bbd8a57e2621f898cd7 --extensions cpp -- llvm/lib/Target/ARM/ARMAsmPrinter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index 6cf63055a5..96d7074e6e 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -154,8 +154,8 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
 
   if (Subtarget->isTargetCOFF()) {
     bool Local = F.hasLocalLinkage();
-    COFF::SymbolStorageClass Scl = Local ? COFF::IMAGE_SYM_CLASS_STATIC
-                                         : COFF::IMAGE_SYM_CLASS_EXTERNAL;
+    COFF::SymbolStorageClass Scl =
+        Local ? COFF::IMAGE_SYM_CLASS_STATIC : COFF::IMAGE_SYM_CLASS_EXTERNAL;
     int Type = COFF::IMAGE_SYM_DTYPE_FUNCTION << COFF::SCT_COMPLEX_TYPE_SHIFT;
 
     OutStreamer->beginCOFFSymbolDef(CurrentFnSym);

``````````

</details>


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


More information about the llvm-commits mailing list