Add an option to the context to force function lookup for all non-relocated function calls

This commit is contained in:
Mr-Wiseguy 2025-01-09 01:56:43 -05:00
parent f09031e84e
commit 8641508cd3
2 changed files with 11 additions and 1 deletions

View file

@ -223,6 +223,8 @@ namespace N64Recomp {
std::vector<uint8_t> rom;
// Whether reference symbols should be validated when emitting function calls during recompilation.
bool skip_validating_reference_symbols = true;
// Whether all function calls (excluding reference symbols) should go through lookup.
bool use_lookup_for_all_function_calls = false;
//// Only used by the CLI, TODO move this to a struct in the internal headers.
// A mapping of function name to index in the functions vector