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