2019-02-04 22:26:05 +01:00
|
|
|
using System.Reflection;
|
|
|
|
using System.Reflection.Emit;
|
|
|
|
|
|
|
|
namespace ChocolArm64.Translation
|
|
|
|
{
|
|
|
|
struct ILOpCodeLoadField : IILEmit
|
|
|
|
{
|
2019-02-28 03:03:31 +01:00
|
|
|
public FieldInfo Info { get; }
|
2019-02-04 22:26:05 +01:00
|
|
|
|
|
|
|
public ILOpCodeLoadField(FieldInfo info)
|
|
|
|
{
|
|
|
|
Info = info;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Emit(ILMethodBuilder context)
|
|
|
|
{
|
|
|
|
context.Generator.Emit(OpCodes.Ldfld, Info);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|