Parse fewer names in linking (#3226)

We don't need an auxiliary map to tell us function addresses, we can
query the symbol instead.
This commit is contained in:
Alex Crichton
2021-08-23 14:35:48 -05:00
committed by GitHub
parent 925b771d2d
commit 22ab535ad9
2 changed files with 14 additions and 37 deletions

View File

@@ -426,12 +426,7 @@ fn build_code_memory(
trampolines.push((i, fnptr));
}
link_module(
&allocation.obj,
&module,
allocation.code_range,
&finished_functions,
);
link_module(&allocation.obj, allocation.code_range);
let code_range = (allocation.code_range.as_ptr(), allocation.code_range.len());