Apped all instructions in |block| to |instructions|.
| 70 | |
| 71 | // Apped all instructions in |block| to |instructions|. |
| 72 | void AddInstructionsInBlock(std::vector<Instruction*>* instructions, |
| 73 | BasicBlock* block) { |
| 74 | for (auto& inst : *block) { |
| 75 | instructions->push_back(&inst); |
| 76 | } |
| 77 | |
| 78 | instructions->push_back(block->GetLabelInst()); |
| 79 | } |
| 80 | |
| 81 | } // namespace |
| 82 |
no test coverage detected