| 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, |