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

Method srcloc

cranelift/codegen/src/ir/function.rs:459–462  ·  view source on GitHub ↗

Returns an absolute source location for the given instruction.

(&self, inst: Inst)

Source from the content-addressed store, hash-verified

457
458 /// Returns an absolute source location for the given instruction.
459 pub fn srcloc(&self, inst: Inst) -> SourceLoc {
460 let base = self.params.base_srcloc();
461 self.stencil.srclocs[inst].expand(base)
462 }
463
464 /// Declare a user-defined external function import, to be referenced in `ExtFuncData::User` later.
465 pub fn declare_imported_user_function(

Callers 1

write_instructionFunction · 0.45

Calls 2

base_srclocMethod · 0.80
expandMethod · 0.45

Tested by

no test coverage detected