[lld] [lld][WebAssembly] Move linker global state in to context object. NFC (PR #78629)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 13:33:26 PST 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 c111dc72e907d8aeb85b42e2251ea55130199681 f04337475f854a4f7ec975877ffb77b29e662848 -- lld/wasm/Config.h lld/wasm/Driver.cpp lld/wasm/InputChunks.cpp lld/wasm/InputFiles.cpp lld/wasm/LTO.cpp lld/wasm/MarkLive.cpp lld/wasm/OutputSections.cpp lld/wasm/OutputSegment.h lld/wasm/Relocations.cpp lld/wasm/SymbolTable.cpp lld/wasm/SyntheticSections.cpp lld/wasm/Writer.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index 6864b8232b..7dcd9db6b9 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -723,8 +723,7 @@ static void handleLibcall(StringRef name) {
     MemoryBufferRef mb = lazySym->getMemberBuffer();
     if (isBitcode(mb)) {
       if (!config->whyExtract.empty())
-        ctx.whyExtractRecords.emplace_back("<libcall>", sym->getFile(),
-                                               *sym);
+        ctx.whyExtractRecords.emplace_back("<libcall>", sym->getFile(), *sym);
       lazySym->fetch();
     }
   }

``````````

</details>


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


More information about the llvm-commits mailing list