mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2026-09-07 01:06:08 -05:00
Add a mechanism to provide original section indices for jump table regeneration (#130)
This commit is contained in:
@@ -83,6 +83,9 @@ namespace N64Recomp {
|
||||
std::unordered_map<size_t, size_t> entry_func_hooks;
|
||||
// Maps function index in recompiler context to function's return hook slot.
|
||||
std::unordered_map<size_t, size_t> return_func_hooks;
|
||||
// Maps section index in the generated code to original section index. Used by regenerated
|
||||
// code to relocate using the corresponding original section's address.
|
||||
std::vector<size_t> original_section_indices;
|
||||
};
|
||||
class LiveGenerator final : public Generator {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user