Propagate multiple entrypoints to alias analysis

This commit is contained in:
Richard Feldman 2022-12-06 16:09:34 -05:00
parent 236cebacc1
commit 8b463686bc
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
10 changed files with 282 additions and 352 deletions

View file

@ -233,10 +233,10 @@ fn mono_module_to_dylib<'a>(
// platform to provide them.
add_default_roc_externs(&env);
let entry_point = match entry_point {
EntryPoint::Executable { symbol, layout, .. } => {
roc_mono::ir::EntryPoint { symbol, layout }
}
let entry_points = match entry_point {
EntryPoint::Executable {
exposed_to_host, ..
} => exposed_to_host,
EntryPoint::Test => {
unreachable!()
}
@ -246,7 +246,7 @@ fn mono_module_to_dylib<'a>(
&env,
opt_level,
procedures,
entry_point,
entry_points,
);
env.dibuilder.finalize();