MCPcopy Create free account
hub / github.com/GJDuck/e9patch / insertSymbol

Function insertSymbol

src/e9tool/e9types.cpp:190–195  ·  view source on GitHub ↗

* Add a symbol to the cache. */

Source from the content-addressed store, hash-verified

188 * Add a symbol to the cache.
189 */
190static bool insertSymbol(Symbols &symbols, const char *name, TypeSig sig,
191 intptr_t addr)
192{
193 Symbol key(strDup(name), sig);
194 return symbols.insert({key, addr}).second;
195}
196
197/*
198 * Parse a symbol from a C++ mangled name.

Callers 2

parseSymbolFunction · 0.85
lookupSymbolFunction · 0.85

Calls 1

strDupFunction · 0.85

Tested by

no test coverage detected