MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / declare_data_in_data

Method declare_data_in_data

cranelift/module/src/module.rs:944–946  ·  view source on GitHub ↗

TODO: Same as above.

(&self, data_id: DataId, data: &mut DataDescription)

Source from the content-addressed store, hash-verified

942
943 /// TODO: Same as above.
944 fn declare_data_in_data(&self, data_id: DataId, data: &mut DataDescription) -> ir::GlobalValue {
945 data.import_global_value(ModuleRelocTarget::user(1, data_id.as_u32()))
946 }
947
948 /// Define a function, producing the function body from the given `Context`.
949 ///

Callers

nothing calls this directly

Implementers 3

module.rscranelift/module/src/module.rs
backend.rscranelift/jit/src/backend.rs
backend.rscranelift/object/src/backend.rs

Calls 2

import_global_valueMethod · 0.80
as_u32Method · 0.45

Tested by

no test coverage detected