* Queue an instruction for patching. */
| 112 | * Queue an instruction for patching. |
| 113 | */ |
| 114 | static void queuePatch(Binary *B, Instr *I, const Trampoline *T) |
| 115 | { |
| 116 | for (unsigned i = 0; i < I->size; i++) |
| 117 | { |
| 118 | assert(I->STATE[i] == STATE_INSTRUCTION); |
| 119 | I->STATE[i] = STATE_QUEUED; |
| 120 | } |
| 121 | |
| 122 | PatchEntry entry(I, T); |
| 123 | B->Q.push_front(entry); |
| 124 | if (!option_batch) |
| 125 | queueFlush(B, I->addr); |
| 126 | } |
| 127 | |
| 128 | /* |
| 129 | * Parse a binary message. |
no test coverage detected