diff options
Diffstat (limited to 'ChocolArm64/Translation/ILOpCodeBranch.cs')
| -rw-r--r-- | ChocolArm64/Translation/ILOpCodeBranch.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ChocolArm64/Translation/ILOpCodeBranch.cs b/ChocolArm64/Translation/ILOpCodeBranch.cs new file mode 100644 index 00000000..b0ba2331 --- /dev/null +++ b/ChocolArm64/Translation/ILOpCodeBranch.cs @@ -0,0 +1,21 @@ +using System.Reflection.Emit; + +namespace ChocolArm64.Translation +{ + struct ILOpCodeBranch : IILEmit + { + private OpCode _ilOp; + private ILLabel _label; + + public ILOpCodeBranch(OpCode ilOp, ILLabel label) + { + _ilOp = ilOp; + _label = label; + } + + public void Emit(ILEmitter context) + { + context.Generator.Emit(_ilOp, _label.GetLabel(context)); + } + } +}
\ No newline at end of file |
