[lld] [lld-macho][NFC] Refactor ObjCSelRefsSection out of ObjCStubsSection (PR #83878)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 23:19:46 PST 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 597f9761c3a5ba278fa930d2fac13f156287d505 cdbc35cda345acae484089311e82edf774112480 -- lld/MachO/SyntheticSections.cpp lld/MachO/SyntheticSections.h lld/MachO/Writer.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 9ac551408a..9cb4756f6d 100644
--- a/lld/MachO/SyntheticSections.cpp
+++ b/lld/MachO/SyntheticSections.cpp
@@ -807,8 +807,7 @@ void StubHelperSection::setUp() {
}
ObjCSelRefsSection::ObjCSelRefsSection()
- : SyntheticSection(segment_names::data, section_names::objcSelrefs) {
-}
+ : SyntheticSection(segment_names::data, section_names::objcSelrefs) {}
void ObjCSelRefsSection::initialize() {
// Do not fold selrefs without ICF.
@@ -862,8 +861,7 @@ ConcatInputSection *ObjCSelRefsSection::makeSelRef(StringRef methName) {
return objcSelref;
}
-ConcatInputSection *
-ObjCSelRefsSection::getSelRef(StringRef methName) {
+ConcatInputSection *ObjCSelRefsSection::getSelRef(StringRef methName) {
auto it = methnameToSelref.find(CachedHashStringRef(methName));
if (it == methnameToSelref.end())
return nullptr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/83878
More information about the llvm-commits
mailing list