17 of 124 compiler tests passing

This commit is contained in:
water
2020-09-07 19:17:48 -04:00
parent ee4eb9f128
commit 1394cf13cd
21 changed files with 449 additions and 15 deletions
+9
View File
@@ -136,6 +136,15 @@ IR_Record ObjectGenerator::get_future_ir_record(const FunctionRecord& func, int
return rec;
}
IR_Record ObjectGenerator::get_future_ir_record_in_same_func(const IR_Record& irec, int ir_id) {
assert(irec.func_id == int(m_function_data_by_seg.at(irec.seg).size()) - 1);
IR_Record rec;
rec.seg = irec.seg;
rec.func_id = irec.func_id;
rec.ir_id = ir_id;
return rec;
}
/*!
* Add a new Instruction for the given IR instruction.
*/