2018-10-31 01:43:02 +00:00
|
|
|
using System.Reflection.Emit;
|
|
|
|
|
|
|
|
namespace ChocolArm64.Translation
|
|
|
|
{
|
|
|
|
struct ILOpCode : IILEmit
|
|
|
|
{
|
2019-02-28 02:03:31 +00:00
|
|
|
public OpCode ILOp { get; }
|
2018-10-31 01:43:02 +00:00
|
|
|
|
|
|
|
public ILOpCode(OpCode ilOp)
|
|
|
|
{
|
2019-02-28 02:03:31 +00:00
|
|
|
ILOp = ilOp;
|
2018-10-31 01:43:02 +00:00
|
|
|
}
|
|
|
|
|
2018-12-11 00:58:52 +00:00
|
|
|
public void Emit(ILMethodBuilder context)
|
2018-10-31 01:43:02 +00:00
|
|
|
{
|
2019-02-28 02:03:31 +00:00
|
|
|
context.Generator.Emit(ILOp);
|
2018-10-31 01:43:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|