[lld] [LLD][COFF] Allow overriding EC alias symbols with lazy archive symbols (PR #113283)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 02:08:10 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 8ae39c8e34de2d24c46827b324c76bac845c18b0 ba1bc2975a630cf09b000b835ef925fc2b8bef6f --extensions cpp,h -- lld/COFF/InputFiles.cpp lld/COFF/InputFiles.h lld/COFF/SymbolTable.cpp lld/COFF/SymbolTable.h lld/COFF/Symbols.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lld/COFF/InputFiles.cpp b/lld/COFF/InputFiles.cpp
index fdbc1de4be..d932aa9859 100644
--- a/lld/COFF/InputFiles.cpp
+++ b/lld/COFF/InputFiles.cpp
@@ -470,8 +470,8 @@ void ObjFile::initializeSymbols() {
         if (!targetSym.isAnyUndefined()) {
           // If the target is defined, it may be either a guess exit thunk or
           // the actual implementation. If it's the latter, consider the alias
-          // to be part of the implementation and override potential lazy archive
-          // symbols.
+          // to be part of the implementation and override potential lazy
+          // archive symbols.
           StringRef targetName = check(coffObj->getSymbolName(targetSym));
           StringRef name = check(coffObj->getSymbolName(coffSym));
           std::optional<std::string> mangledName =

``````````

</details>


https://github.com/llvm/llvm-project/pull/113283


More information about the llvm-commits mailing list