More MSIL utilities

This commit is contained in:
Westin Miller
2017-09-23 01:29:06 -07:00
parent ad1502e998
commit 6f650c8bbd

View File

@@ -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>