mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-15 17:51:16 +01:00
20 lines
419 B
C#
20 lines
419 B
C#
|
using System.Reflection;
|
||
|
using System.Reflection.Emit;
|
||
|
|
||
|
namespace ChocolArm64.Translation
|
||
|
{
|
||
|
struct ILOpCodeLoadField : IILEmit
|
||
|
{
|
||
|
public FieldInfo Info { get; private set; }
|
||
|
|
||
|
public ILOpCodeLoadField(FieldInfo info)
|
||
|
{
|
||
|
Info = info;
|
||
|
}
|
||
|
|
||
|
public void Emit(ILMethodBuilder context)
|
||
|
{
|
||
|
context.Generator.Emit(OpCodes.Ldfld, Info);
|
||
|
}
|
||
|
}
|
||
|
}
|