[llvm] [ARM] support -mlong-calls -fPIC on arm32 #39970 (PR #147313)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 13 16:38:14 PDT 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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/ARM/ARMISelLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 242bec273..6d3192dff 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -2802,9 +2802,9 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
           ++NumMovwMovt;
         Callee = DAG.getNode(ARMISD::Wrapper, dl, PtrVt,
                              DAG.getTargetGlobalAddress(GVal, dl, PtrVt));
-      } else if (isPositionIndependent() && !Subtarget->isTargetWindows()){
+      } else if (isPositionIndependent() && !Subtarget->isTargetWindows()) {
         SDValue G = DAG.getTargetGlobalAddress(
-              GVal, dl, PtrVt, 0, GVal->isDSOLocal() ? 0 : ARMII::MO_GOT);
+            GVal, dl, PtrVt, 0, GVal->isDSOLocal() ? 0 : ARMII::MO_GOT);
         Callee = DAG.getNode(ARMISD::WrapperPIC, dl, PtrVt, G);
         if (!GVal->isDSOLocal())
           Callee =

``````````

</details>


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


More information about the llvm-commits mailing list