Skip to content

Commit

Permalink
DSPJitRegCache: Make FindFreeReg() a const member function
Browse files Browse the repository at this point in the history
This member function doesn't modify class state.
  • Loading branch information
lioncash committed Apr 1, 2018
1 parent d8dd7b9 commit 6cfa9fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ void DSPJitRegCache::SpillXReg(X64Reg reg)
}
}

X64Reg DSPJitRegCache::FindFreeXReg()
X64Reg DSPJitRegCache::FindFreeXReg() const
{
for (X64Reg x : s_allocation_order)
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6cfa9fd

Please sign in to comment.