Returns an iterator to the basic block |id|.
| 137 | |
| 138 | // Returns an iterator to the basic block |id|. |
| 139 | iterator FindBlock(uint32_t bb_id) { |
| 140 | return std::find_if(begin(), end(), [bb_id](const BasicBlock& it_bb) { |
| 141 | return bb_id == it_bb.id(); |
| 142 | }); |
| 143 | } |
| 144 | |
| 145 | // Runs the given function |f| on instructions in this function, in order, |
| 146 | // and optionally on debug line instructions that might precede them and |
no test coverage detected