[lld] [lld][WebAssembly] Allow defining of arbitrary symbols types in LTO objects (PR #196552)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 08:35:42 PDT 2026


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 origin/main HEAD --extensions cpp -- lld/wasm/SymbolTable.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/lld/wasm/SymbolTable.cpp b/lld/wasm/SymbolTable.cpp
index 00bba3528..adaab49d0 100644
--- a/lld/wasm/SymbolTable.cpp
+++ b/lld/wasm/SymbolTable.cpp
@@ -166,7 +166,8 @@ std::pair<Symbol *, bool> SymbolTable::insert(StringRef name,
 }
 
 static bool isBitcodeSymbol(const Symbol *symbol) {
-  return symbol->getFile() && symbol->getFile()->kind() == InputFile::BitcodeKind;
+  return symbol->getFile() &&
+         symbol->getFile()->kind() == InputFile::BitcodeKind;
 }
 
 static void reportTypeError(const Symbol *existing, const InputFile *file,

``````````

</details>


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


More information about the llvm-commits mailing list