More MSIL utilities
This commit is contained in:
@@ -151,6 +151,17 @@ namespace Torch.Managers.PatchManager.MSIL
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Adds the given label to this instruction
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="label">Label to add</param>
|
||||||
|
/// <returns>this instruction</returns>
|
||||||
|
public MsilInstruction LabelWith(MsilLabel label)
|
||||||
|
{
|
||||||
|
Labels.Add(label);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the inline branch target for this instruction.
|
/// Sets the inline branch target for this instruction.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Reference in New Issue
Block a user