| 216 | } |
| 217 | |
| 218 | bool Function::IsBlockType(uint32_t merge_block_id, BlockType type) const { |
| 219 | bool ret = false; |
| 220 | const BasicBlock* block; |
| 221 | std::tie(block, std::ignore) = GetBlock(merge_block_id); |
| 222 | if (block) { |
| 223 | ret = block->is_type(type); |
| 224 | } |
| 225 | return ret; |
| 226 | } |
| 227 | |
| 228 | std::pair<const BasicBlock*, bool> Function::GetBlock(uint32_t block_id) const { |
| 229 | const auto b = blocks_.find(block_id); |
no test coverage detected