[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:
water111
2021-08-29 11:13:06 -04:00
committed by GitHub
parent 24fe2c78c0
commit d9f9e076af
54 changed files with 11632 additions and 2950 deletions
+3
View File
@@ -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);