[clang] [clang] [hexagon] handle --unwindlib arg (PR #99552)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 12:23:45 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 493d504b35b9f655177b81ef3848e4a08a17831a 304b87ca8eab37f499dc202bc184c66f45b574e5 --extensions c,cpp -- clang/lib/Driver/ToolChains/Hexagon.cpp clang/test/Driver/hexagon-toolchain-linux.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Driver/ToolChains/Hexagon.cpp b/clang/lib/Driver/ToolChains/Hexagon.cpp
index 6df60c3e94..691d114b70 100644
--- a/clang/lib/Driver/ToolChains/Hexagon.cpp
+++ b/clang/lib/Driver/ToolChains/Hexagon.cpp
@@ -372,7 +372,7 @@ constructHexagonLinkArgs(Compilation &C, const JobAction &JA,
       if (NeedsSanitizerDeps) {
         linkSanitizerRuntimeDeps(HTC, Args, CmdArgs);
 
-	if (UNW != ToolChain::UNW_None)
+        if (UNW != ToolChain::UNW_None)
           CmdArgs.push_back("-lunwind");
       }
       if (NeedsXRayDeps)

``````````

</details>


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


More information about the cfe-commits mailing list