[lld] [lld] Add thunks for hexagon (PR #111217)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 24 10:43:56 PST 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 ff97b283346273000a8140d6a3a8fcb5a1589946 b3558a1c6df815a7a27a8541bbcf75338f0869ec --extensions cpp -- lld/ELF/Arch/Hexagon.cpp lld/ELF/Relocations.cpp lld/ELF/Thunks.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/ELF/Thunks.cpp b/lld/ELF/Thunks.cpp
index 81acc8c834..12e0b351ea 100644
--- a/lld/ELF/Thunks.cpp
+++ b/lld/ELF/Thunks.cpp
@@ -1685,8 +1685,9 @@ static std::unique_ptr<Thunk> addThunkAVR(Ctx &ctx, RelType type, Symbol &s,
   }
 }
 
-static std::unique_ptr<Thunk> addThunkHexagon(Ctx &ctx, const InputSection &isec,
-                              Relocation &rel, Symbol &s) {
+static std::unique_ptr<Thunk> addThunkHexagon(Ctx &ctx,
+                                              const InputSection &isec,
+                                              Relocation &rel, Symbol &s) {
   switch (rel.type) {
   case R_HEX_B9_PCREL:
   case R_HEX_B13_PCREL:
@@ -1697,7 +1698,7 @@ static std::unique_ptr<Thunk> addThunkHexagon(Ctx &ctx, const InputSection &isec
     return std::make_unique<HexagonThunk>(ctx, isec, rel, s);
   default:
     Fatal(ctx) << "unrecognized relocation " << rel.type << " to " << &s
-             << " for hexagon target";
+               << " for hexagon target";
     llvm_unreachable("");
   }
 }

``````````

</details>


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


More information about the llvm-commits mailing list