MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / find_function_by_vram_section

Method find_function_by_vram_section

include/recompiler/context.h:338–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 size_t find_function_by_vram_section(uint32_t vram, size_t section_index) const {
339 auto find_it = functions_by_vram.find(vram);
340 if (find_it == functions_by_vram.end()) {
341 return (size_t)-1;
342 }
343
344 for (size_t function_index : find_it->second) {
345 if (functions[function_index].section_index == section_index) {
346 return function_index;
347 }
348 }
349
350 return (size_t)-1;
351 }
352
353 bool has_reference_symbols() const {
354 return !reference_symbols.empty() || !import_symbols.empty() || !event_symbols.empty();

Callers 2

mainFunction · 0.80
build_mod_contextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected