[lld] [lld] Fix ILP32 ABI checks for bitcode files. (PR #116537)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 17 01:55:11 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 c95daac4c19fe54eeeb4d0ec5ca23f2673d1de71 36c92b8e735ab77abce9c3fed7b652604ee30d48 --extensions cpp,h -- lld/ELF/Arch/MipsArchTree.cpp lld/ELF/InputFiles.cpp lld/ELF/InputFiles.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 76d4c33ecb..d6f55603be 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -1636,7 +1636,8 @@ template <class ELFT> void SharedFile::parse() {
}
static ELFKind getBitcodeELFKind(const Triple &t) {
- if (t.isArch64Bit() && !t.isABIN32() && !t.isX32() && t.getEnvironment() != Triple::GNUILP32)
+ if (t.isArch64Bit() && !t.isABIN32() && !t.isX32() &&
+ t.getEnvironment() != Triple::GNUILP32)
return t.isLittleEndian() ? ELF64LEKind : ELF64BEKind;
return t.isLittleEndian() ? ELF32LEKind : ELF32BEKind;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/116537
More information about the llvm-commits
mailing list