1
Fork 0

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:
Nicholas Nethercote 2023-11-17 08:15:36 +11:00
parent 3560122bfc
commit de91b6d249
4 changed files with 15 additions and 21 deletions

View file

@ -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() {