* Save a jump instruction for future optimization. */
| 142 | * Save a jump instruction for future optimization. |
| 143 | */ |
| 144 | static void saveJump(const Binary *B, intptr_t addr, uint8_t *bytes, |
| 145 | size_t size) |
| 146 | { |
| 147 | if (!option_Opeephole || bytes == nullptr || !isCFT(bytes, size, CFT_JMP)) |
| 148 | return; |
| 149 | B->Js.push_back({addr, bytes, size}); |
| 150 | } |
| 151 | |
| 152 | /* |
| 153 | * Relocate an instruction to the given address. |
no test coverage detected