mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Wasm: refactor the model of the Linking section
This commit is contained in:
parent
8cf82ae1b3
commit
738434329e
6 changed files with 64 additions and 71 deletions
|
@ -27,12 +27,12 @@ pub trait Wasm32TestResult {
|
|||
index,
|
||||
});
|
||||
|
||||
let symbol_table = module.linking.symbol_table_mut();
|
||||
symbol_table.push(SymInfo::Function(WasmObjectSymbol::Defined {
|
||||
let linker_symbol = SymInfo::Function(WasmObjectSymbol::Defined {
|
||||
flags: 0,
|
||||
index,
|
||||
name: wrapper_name.to_string(),
|
||||
}));
|
||||
});
|
||||
module.linking.symbol_table.push(linker_symbol);
|
||||
|
||||
let mut code_builder = CodeBuilder::new(arena);
|
||||
Self::build_wrapper_body(&mut code_builder, main_function_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue