* Get relocation with name @a name * @param name Name of relocation to get * @return Pointer to relocation with name @a name or @c nullptr if such relocation is not found */
| 1656 | * @return Pointer to relocation with name @a name or @c nullptr if such relocation is not found |
| 1657 | */ |
| 1658 | const Relocation* FileFormat::getRelocation(const std::string &name) const |
| 1659 | { |
| 1660 | for(const auto *table : getRelocationTables()) |
| 1661 | { |
| 1662 | if(table) |
| 1663 | { |
| 1664 | const auto *item = table->getRelocation(name); |
| 1665 | if(item) |
| 1666 | { |
| 1667 | return item; |
| 1668 | } |
| 1669 | } |
| 1670 | } |
| 1671 | |
| 1672 | return nullptr; |
| 1673 | } |
| 1674 | |
| 1675 | /** |
| 1676 | * Get relocation with address @a address |
no test coverage detected