| 226 | } |
| 227 | |
| 228 | std::pair<const BasicBlock*, bool> Function::GetBlock(uint32_t block_id) const { |
| 229 | const auto b = blocks_.find(block_id); |
| 230 | if (b != end(blocks_)) { |
| 231 | const BasicBlock* block = &(b->second); |
| 232 | bool defined = |
| 233 | undefined_blocks_.find(block->id()) == std::end(undefined_blocks_); |
| 234 | return std::make_pair(block, defined); |
| 235 | } else { |
| 236 | return std::make_pair(nullptr, false); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | std::pair<BasicBlock*, bool> Function::GetBlock(uint32_t block_id) { |
| 241 | const BasicBlock* out; |