[decompiler] handle types without inspects better in all-types (#1735)

* [decompiler] handle types without inspects better in all-types

* move a few types I missed
This commit is contained in:
water111
2022-08-06 12:17:24 -04:00
committed by GitHub
parent a72b6e5e01
commit 666a19dd96
5 changed files with 556 additions and 194 deletions
+12 -1
View File
@@ -201,7 +201,18 @@ class ObjectFileDB {
// symbol-name : type-name
std::unordered_map<std::string, std::string> symbol_types;
std::vector<std::string> type_defs;
struct TypeInfo {
bool from_inspect_method = false; // does this come from an inspect method?
// if from inspect method:
std::string type_definition; // the deftype generated from the inspect method.
// if not from inspect method:
u32 flags = 0;
std::string parent;
};
std::vector<std::string> type_names_in_order;
std::unordered_map<std::string, TypeInfo> type_info;
std::string symbol_defs;
};
void ir2_analyze_all_types(const fs::path& output_file,