* @return Pointer to function or @c nullptr if not found. */
| 146 | * @return Pointer to function or @c nullptr if not found. |
| 147 | */ |
| 148 | const Function* FunctionContainer::getFunctionByStartAddress( |
| 149 | const retdec::common::Address& addr) const |
| 150 | { |
| 151 | for (auto& elem : *this) |
| 152 | { |
| 153 | if (addr == elem.getStart()) |
| 154 | { |
| 155 | return &elem; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | return nullptr; |
| 160 | } |
| 161 | |
| 162 | const Function* FunctionContainer::getFunctionByRealName( |
| 163 | const std::string& name) const |
no outgoing calls