| 5658 | } |
| 5659 | |
| 5660 | llvm::Value* BfIRCodeGen::GetLLVMValue(int id) |
| 5661 | { |
| 5662 | auto& result = mResults[id]; |
| 5663 | if (result.mKind == BfIRCodeGenEntryKind_TypedValue) |
| 5664 | return result.mTypedValue.mValue; |
| 5665 | BF_ASSERT(result.mKind == BfIRCodeGenEntryKind_LLVMValue); |
| 5666 | return result.mLLVMValue; |
| 5667 | } |
| 5668 | |
| 5669 | llvm::Type* BfIRCodeGen::GetLLVMType(int id) |
| 5670 | { |