[lld] [lld-macho] Make relative method lists work on x86-64 (PR #103905)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 05:59:03 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 13008aa45d406a65ee7adfc7672a038e4def1ad3 b014dde9e2e0ed0552d1103b7983f26e56e5d2a3 --extensions h,cpp -- lld/MachO/ObjC.cpp lld/MachO/Relocations.cpp lld/MachO/Relocations.h 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 daad8d281a..6b4ec4989c 100644
--- a/lld/MachO/SyntheticSections.cpp
+++ b/lld/MachO/SyntheticSections.cpp
@@ -2121,7 +2121,7 @@ void ObjCMethListSection::writeRelativeOffsetForIsec(
symVA = selRef->getVA();
assert(selRef->data.size() == sizeof(target->wordSize) &&
"Expected one selref per ConcatInputSection");
- } else if (reloc->referent.is<Symbol*>()) {
+ } else if (reloc->referent.is<Symbol *>()) {
auto *def = dyn_cast_or_null<Defined>(reloc->referent.get<Symbol *>());
assert(def && "Expected all syms in __objc_methlist to be defined");
symVA = def->getVA();
``````````
</details>
https://github.com/llvm/llvm-project/pull/103905
More information about the llvm-commits
mailing list