Pass MonoItemData to MonoItem::define

This commit is contained in:
bjorn3
2024-12-12 19:52:38 +00:00
parent a73eba99f7
commit e2e96fa14e
4 changed files with 13 additions and 14 deletions

View File

@@ -90,8 +90,8 @@ pub(crate) fn compile_codegen_unit(
}
// ... and now that we have everything pre-defined, fill out those definitions.
for &(mono_item, _) in &mono_items {
mono_item.define::<Builder<'_, '_, '_>>(&cx);
for &(mono_item, item_data) in &mono_items {
mono_item.define::<Builder<'_, '_, '_>>(&cx, item_data);
}
// If this codegen unit contains the main function, also create the