mirror of
https://github.com/open-goal/jak-project
synced 2026-08-13 04:10:18 -04:00
[decomp] add mips2c converter (#842)
* mips 2 c basic version, not yet tested * calling works without crashing, but the function doesn't * it works * add test * cleanup and actually add the test * dont use mips2c by default for font * clean up formatting
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#include "expression_build.h"
|
||||
#include "common/goos/PrettyPrinter.h"
|
||||
#include "decompiler/Function/Function.h"
|
||||
#include "decompiler/IR2/Form.h"
|
||||
#include "decompiler/IR2/FormStack.h"
|
||||
#include "decompiler/util/DecompilerTypeSystem.h"
|
||||
#include "common/goos/PrettyPrinter.h"
|
||||
|
||||
namespace decompiler {
|
||||
|
||||
@@ -157,15 +157,15 @@ bool convert_to_expressions(
|
||||
auto warn = fmt::format(
|
||||
"Function {} has a return type of none, but the expression builder found a return "
|
||||
"statement.",
|
||||
f.guessed_name.to_string());
|
||||
f.name());
|
||||
f.warnings.expression_build_warning(warn);
|
||||
lg::warn(warn);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (std::exception& e) {
|
||||
f.warnings.expression_build_warning("In {}: {}", f.guessed_name.to_string(), e.what());
|
||||
lg::warn("In {}: {}", f.guessed_name.to_string(), e.what());
|
||||
f.warnings.expression_build_warning("In {}: {}", f.name(), e.what());
|
||||
lg::warn("In {}: {}", f.name(), e.what());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user