Skip to content
Permalink
Browse files
Merge pull request #6581 from lioncash/const
DSPJitRegCache: Make FindFreeReg() a const member function
  • Loading branch information
JosJuice committed Apr 1, 2018
2 parents 3187d1d + 6cfa9fd commit 621e175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -923,7 +923,7 @@ void DSPJitRegCache::SpillXReg(X64Reg reg)
}
}

X64Reg DSPJitRegCache::FindFreeXReg()
X64Reg DSPJitRegCache::FindFreeXReg() const
{
for (X64Reg x : s_allocation_order)
{
@@ -160,7 +160,7 @@ class DSPJitRegCache
};

// Find a free host reg
Gen::X64Reg FindFreeXReg();
Gen::X64Reg FindFreeXReg() const;
Gen::X64Reg SpillXReg();
Gen::X64Reg FindSpillFreeXReg();
void SpillXReg(Gen::X64Reg reg);

0 comments on commit 621e175

Please sign in to comment.