[lld] [wasm-ld] Refactor WasmSym from static globals to per-link context (PR #134970)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 10:55:13 PDT 2025
================
@@ -141,6 +142,9 @@ struct Ctx {
llvm::SmallVector<InputGlobal *, 0> syntheticGlobals;
llvm::SmallVector<InputTable *, 0> syntheticTables;
+ // Linker-generated symbols like __wasm_init_memory, __heap_base, etc.
+ std::unique_ptr<WasmSym> wasmSym;
----------------
sbc100 wrote:
Why can't this just be normal struct member? (i.e. why does need to be a pointer at all).
https://github.com/llvm/llvm-project/pull/134970
More information about the llvm-commits
mailing list