Remove the local field of Module (#2091)
This was added long ago at this point to assist with caching, but caching has moved to a different level such that this wonky second level of a `Module` isn't necessary. This commit removes the `ModuleLocal` type to simplify accessors and generally make it easier to work with.
This commit is contained in:
@@ -49,7 +49,7 @@ fn apply_reloc(
|
||||
match sym.name() {
|
||||
Some(name) => {
|
||||
if let Some(index) = try_parse_func_name(name) {
|
||||
match module.local.defined_func_index(index) {
|
||||
match module.defined_func_index(index) {
|
||||
Some(f) => {
|
||||
let fatptr: *const [VMFunctionBody] = finished_functions[f];
|
||||
fatptr as *const VMFunctionBody as usize
|
||||
|
||||
Reference in New Issue
Block a user