[Decompiler] Expression 5 (#218)

* new method of inline-array-class

* up to new array

* wip side effect stuff

* prepare for pop barrier stuff

* add pop barrier

* add local vars hack to compiler

* fix bug, make sort work

* add test for array

* bug fixes

* another bug fix

* refactoring env variable print for casts

* more tweaks

* updates

* final cleanup

* codacy fixes
This commit is contained in:
water111
2021-02-01 20:41:37 -05:00
committed by GitHub
parent 51f70b6f4b
commit a870bb53e4
46 changed files with 4123 additions and 369 deletions
+11
View File
@@ -155,6 +155,11 @@ ObjectFileDB::ObjectFileDB(const std::vector<std::string>& _dgos,
}
lg::info("ObjectFileDB Initialized\n");
if (obj_files_by_name.empty()) {
lg::die(
"No object files have been added. Check that there are input files and the allowed_objects "
"list.");
}
}
void ObjectFileDB::load_map_file(const std::string& map_data) {
@@ -280,6 +285,12 @@ void ObjectFileDB::add_obj_from_dgo(const std::string& obj_name,
const uint8_t* obj_data,
uint32_t obj_size,
const std::string& dgo_name) {
const auto& config = get_config();
if (!config.allowed_objects.empty()) {
if (config.allowed_objects.find(obj_name) == config.allowed_objects.end()) {
return;
}
}
stats.total_obj_files++;
assert(obj_size > 128);
uint16_t version = *(const uint16_t*)(obj_data + 8);