* Matching. */
| 456 | * Matching. |
| 457 | */ |
| 458 | static void match(const std::vector<Action *> &actions, const ELF &elf, |
| 459 | const std::vector<Instr> &Is, size_t idx, const InstrInfo *I, |
| 460 | std::vector<Action *> &matching) |
| 461 | { |
| 462 | for (auto *action: actions) |
| 463 | { |
| 464 | if (!matchEval(action->match, elf, Is, idx, I)) |
| 465 | continue; |
| 466 | matching.push_back(action); |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | /* |
| 471 | * Save matching. |