mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
[WebAssembly] Add shared memory support to limits field
Support the IS_SHARED bit in the memory limits flag word. The compiler does not create object files with memory definitions, but the field is used by the linker. Differential Revision: https://reviews.llvm.org/D54131 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -193,7 +193,7 @@ static Error readInitExpr(wasm::WasmInitExpr &Expr,
|
||||
|
||||
static wasm::WasmLimits readLimits(WasmObjectFile::ReadContext &Ctx) {
|
||||
wasm::WasmLimits Result;
|
||||
Result.Flags = readVaruint1(Ctx);
|
||||
Result.Flags = readVaruint32(Ctx);
|
||||
Result.Initial = readVaruint32(Ctx);
|
||||
if (Result.Flags & wasm::WASM_LIMITS_FLAG_HAS_MAX)
|
||||
Result.Maximum = readVaruint32(Ctx);
|
||||
|
||||
Reference in New Issue
Block a user