Skip to content

Commit

Permalink
Temporarily inherit TR_X86OpCode from InstOpCode
Browse files Browse the repository at this point in the history
This allows us to replace all uses of the former with the latter in
preparation for deprecating the former.
  • Loading branch information
fjeremic committed May 19, 2021
1 parent ccd1fcc commit 368355e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion compiler/x/codegen/InstOpCode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@

namespace TR
{

class InstOpCode: public OMR::InstOpCodeConnector
{
public:
InstOpCode() : OMR::InstOpCodeConnector(bad) {}
InstOpCode(TR::InstOpCode::Mnemonic m): OMR::InstOpCodeConnector(m) {}
InstOpCode(TR_X86OpCodes op): OMR::InstOpCodeConnector(op) {}
};
}

Expand Down
7 changes: 4 additions & 3 deletions compiler/x/codegen/OMRInstOpCode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ namespace OMR
namespace X86
{

class InstOpCode: public OMR::InstOpCode
class InstOpCode: public OMR::InstOpCode, public TR_X86OpCode
{
protected:

InstOpCode(): OMR::InstOpCode(bad) {}
InstOpCode(Mnemonic m): OMR::InstOpCode(m) {}
InstOpCode(): OMR::InstOpCode(bad), TR_X86OpCode(BADIA32Op) {}
InstOpCode(Mnemonic m): OMR::InstOpCode(m), TR_X86OpCode(BADIA32Op) {}
InstOpCode(TR_X86OpCodes op): OMR::InstOpCode(bad), TR_X86OpCode(op) {}

public:

Expand Down

0 comments on commit 368355e

Please sign in to comment.