[lld] [lld][LoongArch] Print error when encountering R_LARCH_ALIGN (PR #67424)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 06:00:21 PDT 2023
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 0219bd3992a1b9c0ae254e3884c6da7880472fa6 f27a9aa54b5c669ea53bf65decac79a76002dd5b -- lld/ELF/Arch/LoongArch.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/Arch/LoongArch.cpp b/lld/ELF/Arch/LoongArch.cpp
index 8f7cd7db9..3de8b39b8 100644
--- a/lld/ELF/Arch/LoongArch.cpp
+++ b/lld/ELF/Arch/LoongArch.cpp
@@ -525,7 +525,8 @@ RelExpr LoongArch::getRelExpr(const RelType type, const Symbol &s,
// Not just a hint; always padded to the worst-case number of NOPs, so may
// not currently be aligned, and without linker relaxation support we can't
// delete NOPs to realign.
- errorOrWarn(getErrorLocation(loc) + "relocation R_LARCH_ALIGN requires "
+ errorOrWarn(getErrorLocation(loc) +
+ "relocation R_LARCH_ALIGN requires "
"unimplemented linker relaxation; recompile with -mno-relax");
return R_NONE;
``````````
</details>
https://github.com/llvm/llvm-project/pull/67424
More information about the llvm-commits
mailing list