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

Method getObjectByAddress

src/common/object.cpp:188–193  ·  view source on GitHub ↗

* @return Pointer to global object or @c nullptr if not found. */

Source from the content-addressed store, hash-verified

186 * @return Pointer to global object or @c nullptr if not found.
187 */
188const 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)

Callers 5

getConstantMethod · 0.80
getLlvmGlobalVariableMethod · 0.80
getGlobalVarMethod · 0.80
TEST_FFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 1

TEST_FFunction · 0.64