mirror of
https://github.com/open-goal/jak-project
synced 2026-08-19 14:03:38 -04:00
[Decompiler] Flag uses of vf registers for values outside of functions (#263)
* clean up warning system * add bad dependency warning * add q and acc
This commit is contained in:
@@ -2522,11 +2522,11 @@ void add_basic_ops_to_block(Function* func, const BasicBlock& block, LinkedObjec
|
||||
// everything failed
|
||||
if (!result) {
|
||||
// temp hack for debug:
|
||||
printf("Instruction -> BasicOp failed on %s\n", i.to_string(file->labels).c_str());
|
||||
lg::error("Instruction -> BasicOp failed on {}", i.to_string(file->labels));
|
||||
func->add_basic_op(std::make_shared<IR_Failed_Atomic>(), instr, instr + 1);
|
||||
} else {
|
||||
if (!func->contains_asm_ops && dynamic_cast<IR_AsmOp*>(result.get())) {
|
||||
func->warnings += ";; Function contains asm op\n";
|
||||
func->warnings.info("Contains asm ops");
|
||||
func->contains_asm_ops = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user