mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-30 19:12:06 +00: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);
|
||
|
}
|
||
|
}
|
||
|
}
|