mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
21 lines
448 B
C#
21 lines
448 B
C#
|
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));
|
||
|
}
|
||
|
}
|
||
|
}
|