Merge pull request #6581 from lioncash/const

DSPJitRegCache: Make FindFreeReg() a const member function
This commit is contained in:
JosJuice 2018-04-01 22:05:48 +02:00 committed by GitHub
commit 621e1758fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);