[lld] [LLD][ELF][RISCV][Zicfilp][Zicfiss] Support `-z <zicfilp-unlabeled|zicfilp-func-sig|zicfiss>-report-dynamic=<none|warning|error>` options (PR #144304)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 01:20:04 PDT 2025


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 HEAD~1 HEAD --extensions cpp,h -- lld/ELF/Config.h lld/ELF/Driver.cpp lld/ELF/InputFiles.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index f3eae0225..65ff789fd 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -1732,11 +1732,9 @@ static void readConfigs(Ctx &ctx, opt::InputArgList &args) {
   for (opt::Arg *arg : args.filtered(OPT_z)) {
     std::pair<StringRef, StringRef> option =
         StringRef(arg->getValue()).split('=');
-    ReportOptDesc *const desc =
-        std::lower_bound(std::begin(reports), std::end(reports), option.first,
-                         [](const ReportOptDesc &d, const StringRef &s) {
-                           return d.name < s;
-                         });
+    ReportOptDesc *const desc = std::lower_bound(
+        std::begin(reports), std::end(reports), option.first,
+        [](const ReportOptDesc &d, const StringRef &s) { return d.name < s; });
     if (desc == std::end(reports) || desc->name != option.first)
       continue;
 

``````````

</details>


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


More information about the llvm-commits mailing list