| 190 | } |
| 191 | |
| 192 | void Function::ForEachDebugInstructionsInHeader( |
| 193 | const std::function<void(Instruction*)>& f) { |
| 194 | if (debug_insts_in_header_.empty()) return; |
| 195 | |
| 196 | Instruction* di = &debug_insts_in_header_.front(); |
| 197 | while (di != nullptr) { |
| 198 | Instruction* next_instruction = di->NextNode(); |
| 199 | di->ForEachInst(f); |
| 200 | di = next_instruction; |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | BasicBlock* Function::InsertBasicBlockAfter( |
| 205 | std::unique_ptr<BasicBlock>&& new_block, BasicBlock* position) { |
no test coverage detected