[lld] [lld][ELF] Use the containing symbol, not the referenced symbol, for undefined symbol errors. (PR #70800)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 06:32:13 PDT 2023
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 9ca6bf3fb7b7df373723b3275730f101f9ff816b f2d5efdb7250eaf8481c86d13a45528cb77c612c -- lld/ELF/Relocations.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index bf4d452f3ed9..f5b78d51f0e1 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -693,8 +693,8 @@ static const Symbol *getAlternativeSpelling(const Undefined &sym,
return nullptr;
}
-static Symbol &
-getSymAtOffset(InputSectionBase &sec, uint64_t off, Symbol &sym) {
+static Symbol &getSymAtOffset(InputSectionBase &sec, uint64_t off,
+ Symbol &sym) {
ArrayRef<Symbol *> syms;
switch (config->ekind) {
case ELF32LEKind:
``````````
</details>
https://github.com/llvm/llvm-project/pull/70800
More information about the llvm-commits
mailing list