MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / getTrapBB

Method getTrapBB

lib/llvm/compiler.cpp:583–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581 }
582
583 LLVM::BasicBlock getTrapBB(ErrCode::Value Error) noexcept {
584 if (auto Iter = TrapBB.find(Error); Iter != TrapBB.end()) {
585 return Iter->second;
586 }
587 auto BB = LLVM::BasicBlock::create(LLContext, F.Fn, "trap");
588 TrapBB.emplace(Error, BB);
589 return BB;
590 }
591
592 Expect<void>
593 compile(const AST::CodeSegment &Code,

Callers

nothing calls this directly

Calls 4

createFunction · 0.50
findMethod · 0.45
endMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected