mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Create types for DataSection
This commit is contained in:
parent
21988b5fd6
commit
c57d99c1ac
4 changed files with 122 additions and 31 deletions
|
@ -13,7 +13,7 @@ use roc_mono::layout::LayoutIds;
|
|||
|
||||
use crate::backend::WasmBackend;
|
||||
use crate::wasm_module::{
|
||||
Align, CodeBuilder, Export, ExportType, Global, GlobalInitValue, GlobalType, LinkingSubSection,
|
||||
Align, CodeBuilder, Export, ExportType, Global, ConstExpr, GlobalType, LinkingSubSection,
|
||||
LocalId, SymInfo, ValueType, WasmModule,
|
||||
};
|
||||
|
||||
|
@ -85,7 +85,7 @@ pub fn build_module_help<'a>(
|
|||
value_type: ValueType::I32,
|
||||
is_mutable: true,
|
||||
},
|
||||
init_value: GlobalInitValue::I32(stack_pointer_init),
|
||||
init: ConstExpr::I32(stack_pointer_init),
|
||||
});
|
||||
|
||||
Ok(backend.module)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue