MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / link

Method link

src/lib.rs:1626–1645  ·  view source on GitHub ↗
(
        &self,
        sess: &Session,
        compiled_modules: CompiledModules,
        crate_info: CrateInfo,
        metadata: EncodedMetadata,
        outputs: &OutputFilenames,
    )

Source from the content-addressed store, hash-verified

1624 oomir_module.statics.len()
1625 )
1626 );
1627
1628 let oomir_module = optimise1::optimise_module(oomir_module);
1629 metrics::record_oomir_after_optimise1(&oomir_module);
1630
1631 breadcrumbs::log!(
1632 breadcrumbs::LogLevel::Info,
1633 "optimisation",
1634 format!(
1635 "Optimised OOMIR shard {shard_name} contains {} functions, {} data types, and {} statics",
1636 oomir_module.functions.len(),
1637 oomir_module.data_types.len(),
1638 oomir_module.statics.len()
1639 )
1640 );
1641
1642 let generated_classes = lower2::oomir_to_jvm_bytecode(
1643 oomir_module,
1644 debug_info,
1645 emit_runtime_views,
1646 emitted_class_registry,
1647 )
1648 .unwrap_or_else(|error| {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected