DSPJitRegCache: Make FindFreeReg() a const member function

This member function doesn't modify class state.
This commit is contained in:
Lioncash 2018-04-01 15:58:49 -04:00
parent d8dd7b9e66
commit 6cfa9fda6b
2 changed files with 2 additions and 2 deletions

View File

@ -923,7 +923,7 @@ void DSPJitRegCache::SpillXReg(X64Reg reg)
}
}
X64Reg DSPJitRegCache::FindFreeXReg()
X64Reg DSPJitRegCache::FindFreeXReg() const
{
for (X64Reg x : s_allocation_order)
{

View File

@ -160,7 +160,7 @@ private:
};
// Find a free host reg
Gen::X64Reg FindFreeXReg();
Gen::X64Reg FindFreeXReg() const;
Gen::X64Reg SpillXReg();
Gen::X64Reg FindSpillFreeXReg();
void SpillXReg(Gen::X64Reg reg);