[lld] [ELF] Demote symbols in /DISCARD/ discarded sections to Undefined (PR #69295)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 01:22:14 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 4606712ef5b422edbe3799b665dcad7dcf348b90 45184e30bf0a0c809fb40d75d8778e6053ff3bf1 -- lld/ELF/Driver.cpp lld/ELF/LinkerScript.cpp lld/ELF/LinkerScript.h lld/ELF/MapFile.cpp lld/ELF/Relocations.cpp lld/ELF/Symbols.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 5d3c944f18cf..103da708d4e8 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -3055,7 +3055,7 @@ void LinkerDriver::link(opt::InputArgList &args) {
   invokeELFT(splitSections,);
 
   // Garbage collection and removal of shared symbols from unused shared objects.
-  invokeELFT(markLive,);
+  invokeELFT(markLive, );
 
   // Make copies of any input sections that need to be copied into each
   // partition.

``````````

</details>


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


More information about the llvm-commits mailing list