MCPcopy Create free account
hub / github.com/diem/move / build_compiled_module

Function build_compiled_module

language/move-binary-format/src/deserializer.rs:488–496  ·  view source on GitHub ↗

Builds and returns a `CompiledModule`.

(
    module: &mut CompiledModule,
    binary: &VersionedBinary,
    tables: &[Table],
)

Source from the content-addressed store, hash-verified

486
487/// Builds and returns a `CompiledModule`.
488fn build_compiled_module(
489 module: &mut CompiledModule,
490 binary: &VersionedBinary,
491 tables: &[Table],
492) -> BinaryLoaderResult<()> {
493 build_common_tables(binary, tables, module)?;
494 build_module_tables(binary, tables, module)?;
495 Ok(())
496}
497
498/// Builds the common tables in a compiled unit.
499fn build_common_tables(

Callers 1

Calls 2

build_common_tablesFunction · 0.85
build_module_tablesFunction · 0.85

Tested by

no test coverage detected