Skip to content

Commit

Permalink
Add OMR::X86::Machine::getX86RealRegister()
Browse files Browse the repository at this point in the history
The wrapper `OMR::X86::Machine::getX86RealRegister()` is added to
bring backward compatibility for the downstream projects.

Issue: eclipse-omr#2645
Signed-off-by: Pavel Samolysov <[email protected]>
  • Loading branch information
samolisov committed Nov 26, 2018
1 parent 767a3f5 commit dbb29af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions compiler/x/codegen/OMRMachine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@ class OMR_EXTENSIBLE Machine : public OMR::Machine

uint8_t getNumberOfGPRs() { return _numGPRs; }

/**
* @brief This method is the wrapper for \code getRealRegister.
* @param[in] regNum : register number
* @return RealRegister for specified register number
*/
TR::RealRegister *getX86RealRegister(TR::RealRegister::RegNum regNum)
{
return _registerFile[regNum];
}

/**
* @brief Converts RegNum to RealRegister
* @param[in] regNum : register number
Expand Down

0 comments on commit dbb29af

Please sign in to comment.