MCPcopy Create free account
hub / github.com/avast/retdec / getRelocation

Method getRelocation

src/fileformat/file_format/file_format.cpp:1658–1673  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

1656 * @return Pointer to relocation with name @a name or @c nullptr if such relocation is not found
1657 */
1658const 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

Callers 3

addPatternMethod · 0.45
getCoffRelocationsMethod · 0.45
getRelocationsMethod · 0.45

Calls 1

Tested by

no test coverage detected