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:
@@ -66,7 +66,7 @@ pub fn emit_module(
|
||||
declare_data_segment(&mut obj, initializer, i)?;
|
||||
}
|
||||
|
||||
for i in 0..module.local.table_plans.len() {
|
||||
for i in 0..module.table_plans.len() {
|
||||
declare_table(&mut obj, i)?;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ pub fn emit_module(
|
||||
emit_data_segment(&mut obj, initializer, i)?;
|
||||
}
|
||||
|
||||
for i in 0..module.local.table_plans.len() {
|
||||
for i in 0..module.table_plans.len() {
|
||||
emit_table(&mut obj, i)?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user