[decomp] Clean up - part 2 (#687)

* temp

* temp2

* basic case support

* working for or without else

* support more cases

* clean up to drawable headers

* ocean

* format json
This commit is contained in:
water111
2021-07-11 16:35:25 -04:00
committed by GitHub
parent d262dac40d
commit 656489e942
116 changed files with 15692 additions and 11356 deletions
+8 -3
View File
@@ -30,7 +30,9 @@ namespace decompiler {
* At this point, we assume that the files are loaded and we've run find_code to locate all
* functions, but nothing else.
*/
void ObjectFileDB::analyze_functions_ir2(const std::string& output_dir, const Config& config) {
void ObjectFileDB::analyze_functions_ir2(const std::string& output_dir,
const Config& config,
bool skip_debug_output) {
lg::info("Using IR2 analysis...");
lg::info("Processing top-level functions...");
ir2_top_level_pass(config);
@@ -55,8 +57,11 @@ void ObjectFileDB::analyze_functions_ir2(const std::string& output_dir, const Co
lg::info("Initial structuring...");
ir2_cfg_build_pass();
lg::info("Storing temporary form result...");
ir2_store_current_forms();
if (!skip_debug_output) {
lg::info("Storing temporary form result...");
ir2_store_current_forms();
}
lg::info("Expression building...");
ir2_build_expressions(config);
lg::info("Re-writing inline asm instructions...");