cg_clif: fix build with split dwarf

This commit makes minor changes to the cranelift backend so that it can
build given changes in cg_ssa for Split DWARF.

Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
David Wood 2020-11-08 14:01:23 +00:00
parent e3fdae9d81
commit 6c4350dc17
No known key found for this signature in database
GPG Key ID: 2592E76C87381FD9

View File

@ -75,6 +75,7 @@ fn emit_module(
name, name,
kind, kind,
object: Some(tmp_file), object: Some(tmp_file),
dwarf_object: None,
bytecode: None, bytecode: None,
}, },
work_product, work_product,
@ -111,6 +112,7 @@ fn reuse_workproduct_for_cgu(
name: cgu.name().to_string(), name: cgu.name().to_string(),
kind: ModuleKind::Regular, kind: ModuleKind::Regular,
object, object,
dwarf_object: None,
bytecode: None, bytecode: None,
} }
} }
@ -290,6 +292,7 @@ pub(super) fn run_aot(
name: metadata_cgu_name, name: metadata_cgu_name,
kind: ModuleKind::Metadata, kind: ModuleKind::Metadata,
object: Some(tmp_file), object: Some(tmp_file),
dwarf_object: None,
bytecode: None, bytecode: None,
}) })
} else { } else {