Jit64: Make CheckMergedBranch() a const member function

This function doesn't modify class state.
This commit is contained in:
Lioncash 2018-03-31 20:12:50 -04:00
parent 76e1a5b892
commit a4420d6d94
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public:
// Use to extract bytes from a register using the regcache. offset is in bytes.
Gen::OpArg ExtractFromReg(int reg, int offset);
void AndWithMask(Gen::X64Reg reg, u32 mask);
bool CheckMergedBranch(u32 crf);
bool CheckMergedBranch(u32 crf) const;
void DoMergedBranch();
void DoMergedBranchCondition();
void DoMergedBranchImmediate(s64 val);

View File

@ -350,7 +350,7 @@ void Jit64::reg_imm(UGeckoInstruction inst)
}
}
bool Jit64::CheckMergedBranch(u32 crf)
bool Jit64::CheckMergedBranch(u32 crf) const
{
if (!analyzer.HasOption(PPCAnalyst::PPCAnalyzer::OPTION_BRANCH_MERGE))
return false;