mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-08 06:56:28 +00:00
Pass the current IR::Block by reference to the emitter.
This avoids calling the copy constructor more times than needed.
This commit is contained in:
@@ -37,7 +37,7 @@ static IR::Inst* FindUseWithOpcode(IR::Inst* inst, IR::Opcode opcode) {
|
||||
return iter == uses.end() ? nullptr : reinterpret_cast<IR::Inst*>(iter->get());
|
||||
}
|
||||
|
||||
CodePtr EmitX64::Emit(const Arm::LocationDescriptor descriptor, Dynarmic::IR::Block block) {
|
||||
CodePtr EmitX64::Emit(const Arm::LocationDescriptor descriptor, const Dynarmic::IR::Block& block) {
|
||||
inhibit_emission.clear();
|
||||
reg_alloc.Reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user