Cosmos/source2/Users/Matthijs/Testing/IRs/EcmaCil/IL/InstructionBranch.cs
mterwoord_cp d42206e826
2011-02-10 14:41:03 +00:00

32 lines
No EOL
736 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EcmaCil.IL
{
public class InstructionBranch: BaseInstruction
{
public InstructionBranch(InstructionKindEnum aKind, int aIndex)
: base(aKind, aIndex)
{
}
private BaseInstruction mTarget;
public BaseInstruction Target
{
get
{
return mTarget;
}
set
{
if (mTarget != null)
{
throw new Exception("Cannot change Target once set!");
}
mTarget = value;
}
}
}
}