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