mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
[decompiler] automatically label things when possible (#784)
* improve label system * clean up menu * debug menu working, still need to fix tests * fix tests and clean up
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "decompiler/Disasm/DecompilerLabel.h"
|
||||
#include "decompiler/Function/Function.h"
|
||||
#include "common/common_types.h"
|
||||
#include "decompiler/IR2/LabelDB.h"
|
||||
|
||||
namespace decompiler {
|
||||
/*!
|
||||
@@ -128,6 +129,8 @@ class LinkedObjectFile {
|
||||
std::vector<std::vector<Function>> functions_by_seg;
|
||||
std::vector<DecompilerLabel> labels;
|
||||
|
||||
std::unique_ptr<LabelDB> label_db;
|
||||
|
||||
private:
|
||||
goos::Object to_form_script(int seg, int word_idx, std::vector<bool>& seen);
|
||||
goos::Object to_form_script_object(int seg, int byte_idx, std::vector<bool>& seen);
|
||||
|
||||
Reference in New Issue
Block a user