Move Session
out of Linker
.
It can easily be passed in. And that removes the single clone of `Compiler::session`, which means it no longer needs to be `Lrc`.
This commit is contained in:
parent
3560122bfc
commit
de91b6d249
4 changed files with 15 additions and 21 deletions
|
@ -482,7 +482,7 @@ fn run_compiler(
|
|||
|
||||
if let Some(linker) = linker {
|
||||
let _timer = sess.timer("link");
|
||||
linker.link()?
|
||||
linker.link(sess)?
|
||||
}
|
||||
|
||||
if sess.opts.unstable_opts.print_fuel.is_some() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue