Files
linux-packaging-mono/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/ILInstruction.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

68 lines
997 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Mono.Cecil.Cil;
using Mono.Cecil.Metadata;
using System.IO;
using System.Reflection;
namespace Mono.Debugger.Soft
{
/*
* This is similar to the Instruction class in Cecil, we can't use that
* as its constructor is internal.
*/
public class ILInstruction
{
int offset;
OpCode opcode;
object operand;
ILInstruction prev, next;
internal ILInstruction (int offset, OpCode opcode, object operand) {
this.offset = offset;
this.opcode = opcode;
this.operand = operand;
}
public int Offset {
get {
return offset;
}
}
public OpCode OpCode {
get {
return opcode;
}
}
public Object Operand {
get {
return operand;
}
set {
operand = value;
}
}
public ILInstruction Next {
get {
return next;
}
set {
next = value;
}
}
public ILInstruction Previous {
get {
return prev;
}
set {
prev = value;
}
}
}
}