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

Method check_fn

cranelift/reader/src/parser.rs:389–395  ·  view source on GitHub ↗

Resolve a reference to a function.

(&self, fn_: FuncRef, loc: Location)

Source from the content-addressed store, hash-verified

387
388 // Resolve a reference to a function.
389 fn check_fn(&self, fn_: FuncRef, loc: Location) -> ParseResult<()> {
390 if !self.map.contains_fn(fn_) {
391 err!(loc, "undefined function {}", fn_)
392 } else {
393 Ok(())
394 }
395 }
396
397 // Allocate a new constant.
398 fn add_constant(

Callers 1

parse_inst_operandsMethod · 0.80

Calls 2

OkFunction · 0.85
contains_fnMethod · 0.80

Tested by

no test coverage detected