Skip to content

Commit

Permalink
Add OMR::ARM::Machine::getARMRealRegister()
Browse files Browse the repository at this point in the history
The wrapper `OMR::ARM::Machine::getARMRealRegister()` 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 f89fcc3 commit 06f8473
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions compiler/arm/codegen/OMRMachine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ class OMR_EXTENSIBLE Machine : public OMR::Machine

Machine(TR::CodeGenerator *cg);

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

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

0 comments on commit 06f8473

Please sign in to comment.