| 282 | } |
| 283 | |
| 284 | void Function::ComputeAugmentedCFG() { |
| 285 | // Compute the successors of the pseudo-entry block, and |
| 286 | // the predecessors of the pseudo exit block. |
| 287 | auto succ_func = [](const BasicBlock* b) { |
| 288 | return b->structural_successors(); |
| 289 | }; |
| 290 | auto pred_func = [](const BasicBlock* b) { |
| 291 | return b->structural_predecessors(); |
| 292 | }; |
| 293 | CFA<BasicBlock>::ComputeAugmentedCFG( |
| 294 | ordered_blocks_, &pseudo_entry_block_, &pseudo_exit_block_, |
| 295 | &augmented_successors_map_, &augmented_predecessors_map_, succ_func, |
| 296 | pred_func); |
| 297 | } |
| 298 | |
| 299 | Construct& Function::AddConstruct(const Construct& new_construct) { |
| 300 | cfg_constructs_.push_back(new_construct); |
nothing calls this directly
no test coverage detected