More MSIL utilities
This commit is contained in:
@@ -151,6 +151,17 @@ namespace Torch.Managers.PatchManager.MSIL
|
||||
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>
|
||||
/// Sets the inline branch target for this instruction.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user