[llvm] [Object] Refine isData/isBSS criteria (PR #101290)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 22:42:49 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 891d89804b9a8a2be949aa2aca30acba9bc64ebb 1a364fee21d358880279f0f82074d3620a8c1e20 --extensions h -- llvm/include/llvm/Object/ELFObjectFile.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Object/ELFObjectFile.h b/llvm/include/llvm/Object/ELFObjectFile.h
index 7186a53e0c..60c72062a3 100644
--- a/llvm/include/llvm/Object/ELFObjectFile.h
+++ b/llvm/include/llvm/Object/ELFObjectFile.h
@@ -957,8 +957,7 @@ bool ELFObjectFile<ELFT>::isSectionData(DataRefImpl Sec) const {
template <class ELFT>
bool ELFObjectFile<ELFT>::isSectionBSS(DataRefImpl Sec) const {
const Elf_Shdr *EShdr = getSection(Sec);
- return EShdr->sh_flags & ELF::SHF_ALLOC &&
- EShdr->sh_type == ELF::SHT_NOBITS;
+ return EShdr->sh_flags & ELF::SHF_ALLOC && EShdr->sh_type == ELF::SHT_NOBITS;
}
template <class ELFT>
``````````
</details>
https://github.com/llvm/llvm-project/pull/101290
More information about the llvm-commits
mailing list