mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
create hook for future glue proc codegen
This commit is contained in:
parent
c9015e6ef2
commit
edd10a079c
1 changed files with 13 additions and 0 deletions
|
@ -3075,6 +3075,19 @@ fn specialize_external_help<'a>(
|
|||
debug_assert!(top_level.arguments.is_empty());
|
||||
}
|
||||
|
||||
// layouts that are (transitively) used in the type of `mainForHost`.
|
||||
let host_exposed_layouts = top_level
|
||||
.arguments
|
||||
.iter()
|
||||
.copied()
|
||||
.chain([top_level.result]);
|
||||
|
||||
// In the future, we will generate glue procs here
|
||||
for in_layout in host_exposed_layouts {
|
||||
let layout = layout_cache.interner.get(in_layout);
|
||||
drop(layout);
|
||||
}
|
||||
|
||||
procs
|
||||
.specialized
|
||||
.insert_specialized(name.name(), top_level, proc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue