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

Method current_block

cranelift/frontend/src/frontend.rs:333–335  ·  view source on GitHub ↗

Get the block that this builder is currently at.

(&self)

Source from the content-addressed store, hash-verified

331
332 /// Get the block that this builder is currently at.
333 pub fn current_block(&self) -> Option<Block> {
334 self.position.expand()
335 }
336
337 /// Set the source location that should be assigned to all new instructions.
338 pub fn set_srcloc(&mut self, srcloc: ir::SourceLoc) {

Calls 1

expandMethod · 0.45

Tested by

no test coverage detected