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:
Subv
2016-07-18 11:27:33 -05:00
parent f7e3d7b8d2
commit 703a46ec99
2 changed files with 2 additions and 2 deletions

View File

@@ -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();