From 6f650c8bbdd6f72e15b3fb923a57822e99122584 Mon Sep 17 00:00:00 2001 From: Westin Miller Date: Sat, 23 Sep 2017 01:29:06 -0700 Subject: [PATCH] More MSIL utilities --- Torch/Managers/PatchManager/MSIL/MsilInstruction.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Torch/Managers/PatchManager/MSIL/MsilInstruction.cs b/Torch/Managers/PatchManager/MSIL/MsilInstruction.cs index 54ad06e..d16f8e1 100644 --- a/Torch/Managers/PatchManager/MSIL/MsilInstruction.cs +++ b/Torch/Managers/PatchManager/MSIL/MsilInstruction.cs @@ -151,6 +151,17 @@ namespace Torch.Managers.PatchManager.MSIL return result; } + /// + /// Adds the given label to this instruction + /// + /// Label to add + /// this instruction + public MsilInstruction LabelWith(MsilLabel label) + { + Labels.Add(label); + return this; + } + /// /// Sets the inline branch target for this instruction. ///