Skip to content

Commit

Permalink
Rename OpImm => Immediate
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed Nov 3, 2021
1 parent 7c3490d commit 7415e1a
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 446 deletions.
2 changes: 1 addition & 1 deletion src/Bindings/Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ namespace Dotx64Dbg
private:
IOperand^ ConvertOperandImm(const ZydisDecodedInstruction& instr, const ZydisDecodedOperand& op, uint64_t addr)
{
Operand::OpImm^ res = gcnew Operand::OpImm();
Operand::Immediate^ res = gcnew Operand::Immediate();
res->Value = op.imm.value.s;
if (op.imm.is_relative)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Bindings/Encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ namespace Dotx64Dbg {
}
else if (op->Type == OperandType::Immediate)
{
auto opImm = (Operand::OpImm^)op;
auto opImm = (Operand::Immediate^)op;
return asmjit::Imm(opImm->Value);
}
else if (op->Type == OperandType::Memory)
Expand Down
6 changes: 3 additions & 3 deletions src/Bindings/Instruction.Operand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ namespace Dotx64Dbg {
}

// Immediate
ref class OpImm : public IOperand
ref class Immediate : public IOperand
{
public:
OpImm()
Immediate()
{
Value = 0;
}

OpImm(int64_t value)
Immediate(int64_t value)
{
Value = value;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Bindings/Instruction.Operands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,9 @@ namespace Dotx64Dbg {
}

public:
static Operand::OpImm^ Imm(Int64 val)
static Operand::Immediate^ Imm(Int64 val)
{
return gcnew Operand::OpImm(val);
return gcnew Operand::Immediate(val);
}
};

Expand Down
Loading

0 comments on commit 7415e1a

Please sign in to comment.