* @return Pointer to global object or @c nullptr if not found. */
| 186 | * @return Pointer to global object or @c nullptr if not found. |
| 187 | */ |
| 188 | const Object* GlobalVarContainer::getObjectByAddress( |
| 189 | const retdec::common::Address& address) const |
| 190 | { |
| 191 | auto fIt = _addr2global.find(address); |
| 192 | return fIt != _addr2global.end() ? fIt->second : nullptr; |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Besides calling the underlying container's insert which checks (and replaces) |