[lld] [lld-macho] Add flag --keep-icf-stabs to LLD for MachO (PR #93137)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 22:24:19 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 3ca428c090624d3cfc530144da6dcd3abfd9ea63 549c37409fff6c70eeec6b1b60d800b52d99f9ab -- lld/MachO/Config.h lld/MachO/Driver.cpp lld/MachO/SyntheticSections.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp
index 3b36a188d2..b3fe223938 100644
--- a/lld/MachO/SyntheticSections.cpp
+++ b/lld/MachO/SyntheticSections.cpp
@@ -1230,7 +1230,8 @@ void SymtabSection::emitStabs() {
// We use 'originalIsec' to get the file id of the symbol since 'isec()'
// might point to the merged ICF symbol's file
- symbolsNeedingStabs.emplace_back(defined, defined->originalIsec->getFile()->id);
+ symbolsNeedingStabs.emplace_back(defined,
+ defined->originalIsec->getFile()->id);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/93137
More information about the llvm-commits
mailing list