[lld] lld/MachO: support static executable metadata (PR #224995)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 20 22:36:57 PDT 2026
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 origin/main HEAD --extensions cpp,h -- lld/MachO/Config.h lld/MachO/Driver.cpp lld/MachO/OutputSegment.cpp lld/MachO/SyntheticSections.cpp lld/MachO/Writer.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp
index 33dca4b38..20800f55f 100644
--- a/lld/MachO/Driver.cpp
+++ b/lld/MachO/Driver.cpp
@@ -2308,8 +2308,9 @@ bool link(ArrayRef<const char *> argsArr, llvm::raw_ostream &stdoutOS,
}
if (const Arg *arg = args.getLastArg(OPT_segment_order)) {
- StringRef(arg->getValue()).split(config->segmentOrder, ':', -1,
- /*KeepEmpty=*/false);
+ StringRef(arg->getValue())
+ .split(config->segmentOrder, ':', -1,
+ /*KeepEmpty=*/false);
DenseSet<StringRef> seen;
for (StringRef segName : config->segmentOrder) {
validName(segName);
``````````
</details>
https://github.com/llvm/llvm-project/pull/224995
More information about the llvm-commits
mailing list