[lld] [ELF] Fix unnecessary inclusion of unreferenced provide symbols (PR #84512)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 03:29:14 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 8e5de66af3da8c2fc79b8fe2cbc26f94b677434d 7928b14f8c50c6df2c5f380bd7fe03bd5e6cf95f -- lld/ELF/Driver.cpp lld/ELF/LinkerScript.cpp lld/ELF/LinkerScript.h lld/ELF/ScriptParser.cpp lld/ELF/SymbolTable.cpp lld/ELF/SymbolTable.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp
index 244063251c..e6f76aa4a2 100644
--- a/lld/ELF/SymbolTable.cpp
+++ b/lld/ELF/SymbolTable.cpp
@@ -334,7 +334,6 @@ void SymbolTable::scanVersionScript() {
handleDynamicList();
}
-Symbol *SymbolTable::addUnusedUndefined(StringRef name,
- uint8_t binding) {
+Symbol *SymbolTable::addUnusedUndefined(StringRef name, uint8_t binding) {
return addSymbol(Undefined{ctx.internalFile, name, binding, STV_DEFAULT, 0});
}
\ No newline at end of file
``````````
</details>
https://github.com/llvm/llvm-project/pull/84512
More information about the llvm-commits
mailing list