[lld] [lld][WebAssembly] Reset context object after each link (PR #78770)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 11:55:52 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 5330daad41d761aaa1aea554dbeca7c050da7fb6 dffb5366d539af5c34a5ee5bf0f60869d4219d05 -- lld/wasm/Config.h lld/wasm/Driver.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 96a214f76e..647534699d 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -100,9 +100,7 @@ bool link(ArrayRef<const char *> args, llvm::raw_ostream &stdoutOS,
auto *ctx = new CommonLinkerContext;
ctx->e.initialize(stdoutOS, stderrOS, exitEarly, disableOutput);
- ctx->e.cleanupCallback = []() {
- wasm::ctx.reset();
- };
+ ctx->e.cleanupCallback = []() { wasm::ctx.reset(); };
ctx->e.logName = args::getFilenameWithoutExe(args[0]);
ctx->e.errorLimitExceededMsg = "too many errors emitted, stopping now (use "
"-error-limit=0 to see all errors)";
``````````
</details>
https://github.com/llvm/llvm-project/pull/78770
More information about the llvm-commits
mailing list