[lld] [lld/ELF] Warn on conflicting SHF_X86_64_LARGE flag (PR #72335)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 19:11:21 PST 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 c44ac52e7d61d411af970896f9e617c612a74756 7cb677bc7fbd36b079d52fe6331229f903dacf31 -- lld/ELF/OutputSections.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index ab59432da7..c7df6a1993 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -155,8 +155,7 @@ void OutputSection::commitSection(InputSection *isec) {
warn("incompatible SHF_X86_64_LARGE section flag for " + name +
"\n>>> " + toString(conflictISec) + ": 0x" +
utohexstr(conflictISec->flags) + "\n>>> " + toString(isec) +
- ": 0x" + utohexstr(isec->flags)
- );
+ ": 0x" + utohexstr(isec->flags));
}
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/72335
More information about the llvm-commits
mailing list