[lld] [llvm] [WebAssembly] Add segment NO_STRIP flag to support private retained data (PR #81539)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 14:20:30 PST 2024
================
@@ -2150,11 +2150,23 @@ static unsigned getWasmSectionFlags(SectionKind K) {
if (K.isMergeableCString())
Flags |= wasm::WASM_SEG_FLAG_STRINGS;
+ if (Retain) {
+ Flags |= wasm::WASM_SEG_FLAG_NO_STRIP;
+ }
----------------
sbc100 wrote:
Remove curly braces to match surrounding code?
https://github.com/llvm/llvm-project/pull/81539
More information about the llvm-commits
mailing list